(Local Scope and Functions)

how to do this chalenge

Your code so far

function myLocalScope() {
  'use strict';

// 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:

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:

Have you done what the instruction asks you to yet?

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:

thanks for your help i did it.