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 is a CodeWars framework bug, where preloaded code (such as
BlackKnight
) is not loaded until you click Submit, meaning that you can't test your solution. The workaround is just use Submit instead of trying to use tests.You can, however, write tests in the same frame as your solution goes, or log things from there. Then when you click Submit they'll be run and you can see what the results are before the Kata's solution tests are run.
Simple and clear. :)
No worries.
yeah, it makes more sense now
sorry for late response, but I didn't notice your first post and got email notification just now
Is this suggestion covered now?
The
null
value does not represent a number. ANumber
object does represent a number.I don't get it. Why null isn't a number and new Number(1) is?
I get the "ReferenceError: BlackKnight is not defined" even when I try to log it from my solution.
Fair enough. I explicitly explained what is expected in the second paragraph, but I agree that line was misleading. It has now been cut.
Thanks for the feedback~
Okay. Got ya. Added tests for those. Thanks for the feedback!
This comment is hidden because it contains spoiler information about the solution