Tell us what’s happening:
I’ve tried every solution listed in this board and can’t get past this lesson.
I always get
// running tests You should add a local
myVar
variable. // tests completed // console output SyntaxError: invalid regular expression flag s
Your code so far
function myLocalScope() {
'use strict';
// Only change code below this line
var myVar = 5;
// console.log('inside myLocalScope', myVar);
}
myLocalScope();
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:75.0) Gecko/20100101 Firefox/75.0
.
Challenge: Local Scope and Functions
Link to the challenge: