The answer is wrong


In this code example it is just checking for the first letter of my name thus for eg the code does not identify the difference between Joe Jam Jim Jit Jak Jil
It just logs all of this text.

Which is a big mistake and the code needs to be corrected to give user proper output


You are correct that there are errors in this lesson that could cause some confusion, but the point of the lesson is to teach a concept of using a For-Loop, inside of another For-Loop.

There are plenty of ways to compare the text to the actual myName variable, but those are complex and would lose the user entirely.

For now it's best to just compare it to the letter, later on you will use functions, and Objects to search in a more complicated manner for specific values.

I hope this helps :+1: