(Local Scope and Functions)

(Local Scope and Functions)
0.0 0

#1

how to do this chalenge

Your code so far

function myLocalScope() {
  'use strict';
  
  
  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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36.

Link to the challenge:


#2

Have you done what the instruction asks you to yet?

Instructions
Declare a local variable myVar inside myLocalScope. Run the tests and then follow the instructions commented out in the editor.

If so, please post your attempt so that we know what you have tried so far. :slight_smile:


#3

thanks for your help i did it.