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