Question 75
Question
Answer
function myFunction() {
console.log(myVar); // ReferenceError! - myVar is in its TDZ
let myVar = "Hello";
console.log(myVar); // Outputs "Hello"
}
myFunction();Last updated
function myFunction() {
console.log(myVar); // ReferenceError! - myVar is in its TDZ
let myVar = "Hello";
console.log(myVar); // Outputs "Hello"
}
myFunction();Last updated