Is there any difference between declaring a variable:

var a=0; //1

…this way:

a=0; //2

…or:

window.a=0; //3

in global scope?

5 Answers
5

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *