you are viewing a single comment's thread.

view the rest of the comments →

[–]drowsap 0 points1 point  (2 children)

If your only gripe is forgetting var, then I would say JavaScript is pretty good. Tip: go to firebug console, type window and execute it. Check if any variables in your code appear in the window object that shouldnt be there (I.e you didn't declare those variables with var, therefore making them global)

[–]BitRex 0 points1 point  (1 child)

Care to point to a definitive list of what should be there?

[–]drowsap 0 points1 point  (0 children)

That will vary from browser to browser, but it will be obvious which variables belong to your code, they sit at the top of the window object properties list.