Local Scope and Functions1998

Tell us what’s happening:
I have gotten this far on this particular class. I am having the problem of creating a local variable. May someone give me some information about this.

Your code so far

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


// 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 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15.

Link to the challenge:

1 Like

Read the instructions carefully and remember that variables are case-sensative.

Thanks for the assistance