Problem with Js challenger

Tell us what’s happening:

  **Your code so far**
  I can't pass the chellenger, i complete the instruction but don't let me pass.

function myLocalScope() {
var myVar = 5;
// Only change code below this line

console.log('inside myLocalScope', myVar);
}
myLocalScope();

// Run and check the console
// myVar is not defined outside of myLocalScope
console.log('outside myLocalScope', myVar);
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0.

Challenge: Local Scope and Functions

Link to the challenge:

You see the comment that says

// Only change code below this line

You should do exactly what is says and add your code below the comment line.

You will find that some of these tests are very strict and are expecting you to add code only where you are instructed to.

2 Likes