H
Helmut Giese
Hello out there,
I am a rather experienced C programmer. However, today I got a
javascript assignment because someone left (something like: "You're a
great programmer - you'll handle this.") and I never have done any web
stuff before. Oh, and it's due within 2 weeks of course
Having had a first look at javascript I noted some familiarities with
C, but there also seems to be a lot of pre-defined stuff (like
'document') with certain properties / functions, which is a bit
confusing.
I have listed some basic questions below and I am hoping someone will
be able to provide some links ot other information answering those.
1) What is the current version of javascript which is supported by the
current browsers (or is this a no-issue)?
2) A reference of pre-defined objects and their properties /
functions.
3) How do you debug javascript? If you make an error, wrong HTML might
show up (this could give you a clue) but also nothing might show up at
all - what do you do then? Stare at the code?
4) Libraries / collection of often used functions (handling of strings
and dates, numeric stuff, etc.)
5) A side note: Is it possible in javascript to create variable names
at runtime and access them? Something like (e.g. iterating over input
fields)
for (i=0; i< 10; ++i) {
currField = <construct name of input field i here, e.g. inp0>
currField.value = ...
}
Any answers to the above questions or further helpful information will
be greatly apprieciated.
Best regards
Helmut Giese
I am a rather experienced C programmer. However, today I got a
javascript assignment because someone left (something like: "You're a
great programmer - you'll handle this.") and I never have done any web
stuff before. Oh, and it's due within 2 weeks of course
Having had a first look at javascript I noted some familiarities with
C, but there also seems to be a lot of pre-defined stuff (like
'document') with certain properties / functions, which is a bit
confusing.
I have listed some basic questions below and I am hoping someone will
be able to provide some links ot other information answering those.
1) What is the current version of javascript which is supported by the
current browsers (or is this a no-issue)?
2) A reference of pre-defined objects and their properties /
functions.
3) How do you debug javascript? If you make an error, wrong HTML might
show up (this could give you a clue) but also nothing might show up at
all - what do you do then? Stare at the code?
4) Libraries / collection of often used functions (handling of strings
and dates, numeric stuff, etc.)
5) A side note: Is it possible in javascript to create variable names
at runtime and access them? Something like (e.g. iterating over input
fields)
for (i=0; i< 10; ++i) {
currField = <construct name of input field i here, e.g. inp0>
currField.value = ...
}
Any answers to the above questions or further helpful information will
be greatly apprieciated.
Best regards
Helmut Giese