Possible Duplicate:
Difference between using var and not using var in JavaScript
Hello,
I am a self learned developer. Always, i write javascripts without the var
for variables. But some javascripts use var
for variables.
Both worked well for me. I am bit confused by this.
Is Writing scripts with var
a standard form or they used only within classes ?