I tried to the opposite of what the exercise wanted. Instead of declaring a variable with var inside the function, I did it like this:
function myLocalScope() {
'use strict';
// Only change code below this line
myVar = "bebe"
console.log('inside myLocalScope', myVar);
}
myLocalScope();
// Run and check the console
// myVar is not defined outside of myLocalScope
console.log('outside myLocalScope', myVar);
I thought that since I used no var it would be global now. But it just says its not defined. Not even in the local scope. If I add var inside the function, then the function works.