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 .
You can, and you should.
Not working how?
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 === ''