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.
Agreed. My only issue readability. Even though it's easy for me to understand. I think it should be more readable for other coders who are fairly new. Helps them and the community grow much faster
This comment is hidden because it contains spoiler information about the solution
ahhhh, Makes sense. Thanks
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
Theres an error in your code test
Test.assertEquals(longestString('now for some reason my shoe smells funny'), "reason", "try again");
the string lenth of reason & smells equals the same
reason.length === smells.length
so reason can't be the longest word by it's lone some. You should create a test that responds to the case and have coders also check for the edge case. Happy Coding
Interesting I should have went this route. would have saved me one line. Love how clean it come out. Great job
Lol I came to the same conclusion
the reason your code isn't going to work is because your code won't be able to return the orignal array in some cases.
For example:
in your filter you potulated that if value is equal to 0 or "0" you will return "0".
In the example of [a, b, 0, "0", "0"] you would return [a, b, "0", "0", "0"] which is total different from the orignals array elements & values
Try returnin it's orginal value instead of what you beleive it to be because you will end up creating a new array instead of sorting it. Hope it helps =)
I just started coding about 5 weeks ago. I constantly trying learn and help other's. I just solved this solution. In one line. add me on Facebook and we can send each others materials and help each other on our coding journey. if you down.
https://www.facebook.com/kingdavid.martins.9
yay!! I used shortest lines of code to solve this challenge
is it just me or was this kyu way too easy. I've spent way more time on level 7 kyu challeneges
Javascript
Test Passed: Value == true
Test Passed: Value == false
Test Passed: Value == false
Test Passed: Value == true
Expected: true, instead got: false
4 Passed
1 Failed
0 Errors
This is what I get. I don't know where I went wrong. Nothing should cause it to go false.
can someone please reveiw my code and let me know what they think.