Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Joel Shepherd
November 20, 2004, 9:50 pm
rate this thread
Easy, big fella... ;-)
Right. One way of guarding against the relatively common programmer's
error of typing "=" when "==" is meant, is to make a habit of putting
the constant (or, the expression that can't be assigned to) on the
left-hand side of the operator. E.g.,
if ('text' == var)
Accidentally writing that as
if ('text' = var)
is bound to set off alarms, though I'm not sure if they'd be at
ECMAScript is an interpreted language, so there is no compilation phase.
Fatal syntax errors should be signaled when the script is parsed as the
Replace ".invalid" with ".uk" to reply by e-mail.