codeboot icon indicating copy to clipboard operation
codeboot copied to clipboard

Writing to an undeclared variable should give an error

Open feeley opened this issue 13 years ago • 1 comments

feeley avatar Sep 27 '12 13:09 feeley

This may be too much of a restriction of the JS semantics to be usable. It would mean that variables always have to be declared with an initializer (i.e. "var foo = 123;"). Perhaps this can be one of the beginner language levels.

feeley avatar Sep 28 '12 11:09 feeley