Tell us what’s happening:
can someone please help me with this?
Your code so far
function myLocalScope() {
// Only change code below this line
console.log('inside myLocalScope');
}
myLocalScope();
// Run and check the console
// myVar is not defined outside of myLocalScope
console.log('outside myLocalScope');
console.log(myVar);
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15
.
Challenge: Local Scope and Functions
Link to the challenge: