Variables declaration


#1



I am able to declare variables without the "var" and the code is running pretty well. So what's the use of that?


#2

Can you post your code? What you are saying is really suspicious! :sunglasses:
Thanks,
@minasf


#3

You shouldn't be able to! Bad things will happen if you do this in the real world!

Try to declare ALL variables with the var keyword. :stuck_out_tongue_winking_eye:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.