Friday, 23 August 2013

Declaring variables or not, what is the difference?

Declaring variables or not, what is the difference?

In JavaScript what is the difference between declaring a variable, for
example var i=0;, and not declaring, for example i=0;?
In addition, what's the difference between declaring an array and not, for
example ar=new Array(); (declaring) and ar=text.split("<br>"); (not
declaring)?

No comments:

Post a Comment