Tell us what’s happening:
Im a noob and i dont under stand what
checkScope() should return “function scope” means
Means
Your code so far
function checkScope() {
"use strict";
let i = 'function scope';
if (true) {
i = 'block scope';
console.log('Block scope i is: ', i);
}
console.log('Function scope i is: ', i);
return i;
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15
.
Challenge: Compare Scopes of the var and let Keywords
Link to the challenge: