Challenge Name
compare-scopes-of-the-var-and-let-keywords has an issue.
Issue Description
when I submit my answer.the console has an error :TypeError:Cannot read the property ‘challenges’ of undefined
Browser Information
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
.
Screenshot
Your Code
function checkScope() {
"use strict";
let i = "function scope";
if (true) {
let i = "block scope";
console.log("Block scope i is: ", i);
}
console.log("Function scope i is: ", i);
return i;
}