which one should you use when variable declaration in javascript code example
Example 1: javascript variable declaration
var a = 0, b = 0;
Example 2: javascript variable declaration
var name = "mamama";
document.write(name);
// Outputs "mamama"
var a = 0, b = 0;
var name = "mamama";
document.write(name);
// Outputs "mamama"