Codecademy exercises


#1

Unfortunately the exercise to locate and extract a name from a block of text only works if the name begins with a capital letter, and there are no other names beginning with the same letter! Some other method will have to be used to extract specific words from a block of text! Spent over an hour figuring out why I couldn't get my code to work properly.


#2

That depends on how your name was written maybe:

if(text[i].toLowerCaser() === myName[0].toLowerCase())

can solve this issue.

yes. But I guess it's told in the course that this is an issue and the last exercise let's it up to you to fix it or to go on.


#3

Earlier on the course touched on Substring. I used that to extract the exact word, capitals or not.