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.
Awesome! :)
Thanks, Solved:)
See here what is the return value of
push
, maybe it will help.This comment is hidden because it contains spoiler information about the solution
several problems with your code:
Which language?
HELP, What does it mean?
expected '\n' to equal '\n'
Not a kata suggestion.
Hi @ATechAjay - it seems you are working in JavaScript; I can't see the tests for that language, but are you sure you are implementing this extra requirement/check:
"If the input array is empty consider it as:
[0]
(array with a zero)."In other words, if your code receieves an empty array as the input, does it correctly return the string
'even'
? Or does it incorrectly return0
?This comment is hidden because it contains spoiler information about the solution