Hi I’m trying to do the JS question entitled “Local Scope and Functions”. It says I need to uncomment the console log line, but it still doesn’t let me advance. Any advice?
function myLocalScope() {
'use strict';
myVar="test";
console.log(myVar);
}
myLocalScope();
// Run and check the console
// myVar is not defined outside of myLocalScope
// Now remove the console log line to pass the test