Can anyone help me out?

Tell us what’s happening:

Your code soit far


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;
}
console.log(checkScope());


let numArray = [];

for(let i = 0; i < 4 ; i++){
      numArray.push(i); 
}

console.log(numArray);
console.log(i);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36.

Challenge: Compare Scopes of the var and let Keywords

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords

What do you need help with?

let numArray = [];
for(let i = 0; i < 4 ; i++){
    numArray.push(i); 
    console.log(i) # i is declared because it is within the scope of the for loop
}
console.log(numArray);
# console.log(i); // i is undeclared because it is outside the scope of the for loop that you used it in