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.
^Excuse me, but how do you see the solution from the author?
Without a generally agreed upon difinition of teens as over 12,
10-19
as used follows nicely from the description.Closing.
There is no definition of "teen" in kata description. This term differs from country to country and by analogy with other groups, it is logical to assume that in this case it is from 10 to 19 years, inclusive.
In addition, after solving the kata, you can see the solution of the author, from which it also follows that 10 <= 'teens' <20.
The problem is you're using for...in with an array. Add
console.log
s to see why your code is failing.