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.
Lukas, sorry for the delay in responding. Any variables declared with var are not properties and therefore are not able to be discovered by looping over the object's property names. This kata takes advantage of that, forcing you to look for the variable in different ways. Have you tried to see what the source code looks like?
Can you explain reasoning behind this ?
Score!
It seems the third test case is wrong. There are really just two places where "ho" is present: "Doctor Who","The Hobbit" but test requires three results.
This kata seems cool but it is solvable at the moment?
I have dumped all the global objects(chains too) have some functions doing the bomb stuff however as from description there's no GLOBAL var which seems to be the key. I would like some insight as I have nowhere to go at the moment :)
I also believe I should not redefine the functions or so as per description i look for GLOBAL variable ?
I have thought about that and my kata passed. Really should read more carefully. Thanks!
I believe one before last test cases being automatically generated are falsy. I tried numerous times and just look for example at this:
Present = [44,39,43]
Box = [44,39,4]
It excepts false while it can be seen that present really fits!
Decent
No offence :) I really like regex usage in this case, that's just a comment for anyone who may not know that.
Yes it is good because it is expression(var something = function...) and not a function statement(function something....)
Regex usage should cost performance for such a simple operation