Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
wow, I didn't know that regular expressions work even with numbers. Thank you, dude.
Use spoiler flag, please.
This comment is hidden because it contains spoiler information about the solution
https://jsperf.com/wubstep/12
This comment is hidden because it contains spoiler information about the solution
I guess you forgot to run it in that testcase?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Suggest having a test that includes a key phrase starting at the beginning of the string as well. Some solutions fail to consider this possibility.
console.log("3.50 is about all I need to get on the bus.");
Test.expect(isLockNessMonster("3.50 is about all I need to get on the bus."));
This would fail returning them if the string would begin with one of Nessy's phrases. The index would be 0 in those cases.
That's a lovely and simple answer. I had used reverse at work, but ended up neglecting to remember the beauty of it.