function myLocalScope() {
'use strict'; // you shouldn't need to edit this line
myVar ();
console.log(myVar);
}
myLocalScope();
// Run and check the console
// myVar is not defined outside of myLocalScope
myVar();
// Now remove the console log line to pass the test
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:61.0) Gecko/20100101 Firefox/61.0.
Note the 'use strict' in the first line – this requires that variables be defined with the keyword var (so it will fail if you don’t include var, or if you try to use let or const to define your variable).
So the line where you initialize the variable myVar – does it look like