Mistake in the javascript lesson?


#1

Hello.
I’m taking the Javascript Beginner course.
I think that I found a pretty big mistake in this lesson:
https://www.codecademy.com/en/courses/javascript-beginner-en-XEDZA/0/1?curriculum_id=506324b3a7dffd00020bf661

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.


#2

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’


#3

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