Local Scope and Functions1

Tell us what’s happening:

Your code so far


function myLocalScope() {
  'use strict'; // you shouldn't need to edit this line
  var myVar ="Noglobal";

}
myLocalScope(myVar);

// Run and check the console
// myVar is not defined outside of myLocalScope


// Now remove the console log line to pass the test

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36 OPR/54.0.2952.54.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/local-scope-and-functions

It looks like you removed one line of code which was there at the start. You can reset the code to bring back the original program and then try adding your new line of code to the function.