In JavaScript, a variable can be declared after it has been used. In other words; a variable can be used before it has been declared.
x=5;
console.log(x)
var x;
No comments:
Post a Comment