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.
Yeah, I've found that it's good practice to use those in functional programming, as they won't mutate the originalinputs/array
This is great, but using object oriented programming would have saved you a lot of keystrokes!
Thank you!
\
this is a very cool solution!
I just understood it. I'm grateful for your offer of help
I can help if you write what exactly you do not understand and what you understood from the description )
love it
I don't even understand the description. Any help please?
Your function's name is
count_sheep
, notcount_sheeps
, it's missing ans
at the end, and that's your mistake. Not a kata issue.Read the error message next time:
it is but still don't work, kata issue
Js tests work fine, the problem is in your code. Your loop condition is wrong.
JavaScript does not work, please fix