JS variabel var3
by istiq20
JavaScript
function Student() {
// function scope
var name = 'Daisy';
}
// global scope
console.log(name); // Uncaught ReferenceError: name is not defined
by istiq20
function Student() {
// function scope
var name = 'Daisy';
}
// global scope
console.log(name); // Uncaught ReferenceError: name is not defined