Tell us what’s happening:
Your code so far
function myLocalScope() {
var myVar = "Lawrence";
console.log(myVar);
}
myLocalScope();
// Run and check the console
// myVar is not defined outside of myLocalScope
console.log(myVar);
// Now remove the console log line to pass the test
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36
.
Link to the challenge:
https://www.freecodecamp.org/challenges/local-scope-and-functions