Tell us what’s happening:
how to pass the text. Which part i missing?
Your code so far
function myLocalScope() {
var myVar= 5;
// Only change code below this line
console.log(myVar);
}
myLocalScope();
// Run and check the console
// myVar is not defined outside of myLocalScope
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
.
Challenge: Local Scope and Functions
Link to the challenge: