Help please i dont understand it

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:

It means that the variable i should have the value “function scope” when the return i statement at the bottom of the function is reached.

Thank you im a noob at this and im 13 i should be better!

You’re fine. Learning to read error messages is a valuable skill but it can take a while to get good at it :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.