Compare Scopes of the var

Tell us what’s happening:

Your code so far

function checkScope() {
'use strict';
 return "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 (X11; CrOS x86_64 13020.87.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Safari/537.36.

Challenge: Compare Scopes of the var and let Keywords

Link to the challenge:

You are returning the function scope to early which causes the rest of the code to do nothing.
Also the challenge did not ask you to change the return function or the rest of the code only to change the var to a let keyword
Hope it helps you out