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