The purpose of this lesson is to teach the importance of correctly scoping your variables.
With the if(i ===2) you would expect printNumTwo to print the number two because it is initialized when i is 2 BUT printNumTwo doesn’t print the number 2, it prints the variable i and the variable i is changed to 3 at the end of the for loop. So even though i was 2 when printNumTwo was initialized, it will always print whatever the current value of i is.
it’s awesome you want to help! though this was a question on a specific freeCodeCamp challenge, you can see this code in the description of this challenge: