variable syntax declare javascript code example
Example 1: varianle in javascript
var one = 1; // variable stores numeric value
var two = 'two'; // variable stores string value
var three; // declared a variable without assigning a value
Example 2: define value in js
var var1 = 1; //value
var var2 = "str";
var var3 = 'char';