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.
how's this working without setting i as a parameter??
Even thought your solution would work the problem with this approach is the runtime complexity.
Iterating over an object has a runtime of O(n), or more presice O(17) in this example since the number of languges is constant.
The benefit of using a HashMap (object in JavaScript) is that you can lookup / retreive items in constant runtime O(1).
Especially when dealing with large datasets this can cause siginificant performance differences.