variable declaration and definition in javascript code example
Example 1: javascript variable declaration
var name = "mamama";
document.write(name);
// Outputs "mamama"
Example 2: javascript variable declaration
var a = 0, b = 0;
var name = "mamama";
document.write(name);
// Outputs "mamama"
var a = 0, b = 0;