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.
* just means fetch all columns in the table being searched. In this case it is the students table which also has an alias s. Hence why we have SELLECT s.*, which is referring to the alias s, which is the students table and the . says on students give me all the columns. In this case just the * would have worked .
I'm sorry, my bad. Forgot to pass it as an argument to launchAll.
Shouldn't jump to conclusions that fast! 😬
You can, and you should.
Not working how?
Hmmmm seems to be broken. I thought I could refer to a function launchMissile, but that's obviously not working...
Nice extra work! Someone could explain what SELECT s.* does? Is * the wildcard-char?
Thanks a lot! I get it :)
There's no need to compare with the empty string, since the outer loop will never be entered when str.length is 0 (becase 0 < 0 evaluates to false, the whole loop is skipped)
The issue with this code is you're returning 'true' before the outer loop has a chance to iterate, so you never compare the second letter with the rest of the string.
Move 'return true' down one line so it's the last thing that happens in the function and you will pass the tests without your str === ''
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution