variable value change after initialization 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: Create variable javascript
//Assigns the value bar to the variable foo
var foo = bar;