Local Scope and Functions 11/28/2017

Local Scope and Functions 11/28/2017
0

#1

Tell us what’s happening:
It’s not letting me pass!

Your code so far

function myLocalScope() {
  var myVar = 'use strict';
  console.log(myVar);
  
}
myLocalScope();


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36.

Link to the challenge:


#2
function myLocalScope() {
  'use strict'; // This is JS directive
  var myVar = 'your variable'
  console.log(myVar);
  
}
myLocalScope();

#3

Thanks mubaidr!!!