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.
This comment is hidden because it contains spoiler information about the solution
This solution is not best practice, returning a boolean from a ternary operator is a waste of characters and known as antipattern
Count how many
{
you have there and how many}
.Delete the calls to your function (you don't need them) and don't use
console.log
inside the function, usereturn
instead.And your code is? Mark your post as having spoiler content and check how to use code markdown