Mistake in the javascript lesson?


I’m taking the Javascript Beginner course.
I think that I found a pretty big mistake in this lesson:

To be more specific, the loop doesn’t search for matches of myName, instead, it searches for any 3 characters following the letter E.

You can change the line 7 from “Eric” to “Erac”. The program will still match Eric in the text string.

UPD: Sorry, I see in the next lesson that you mention about it.


yea, the challenge was simplified, given exact matches would complicate the program, but if you like a challenge, you can attempt to fix this ‘bug’


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