Variable for Number

It is also possible to store a number in variable. While using variable for Number, we should not use quotes otherwise the number inside quotes will be same as string.

Code Structure
var num = 100;
alert(num);

Share this

Related Posts