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.
Try
console.log(BlackKnight.toString());
Agreed. This is rather confusing. Running "console.log(BlackKnight);" within the Codewars console and Test console doesn't return anything for me.
Quite sorry for the late response, I have been somewhat MIA here.
First of all, thank you. This post pointed out one of my assumptions that is probably causing confusion for some people; I am relying on the user being familiar with the Codewars provided objects (Test and console).
For the details on the test framework used by Codewars, take a look at http://www.codewars.com/docs/js-slash-coffeescript-test-reference .
You can use
console.log(BlackKnight)
in the code you type for your solution, and it will show some basic output in the response you get from the codewars server. Once you can get output, it should be possible to iterate over the keys of the BlackKnight object and output their corresponding values, and that should help you on your way. I'll restate you can't use the browser console because of the way Codewars works.I hope the above made some sense... If not, feel free to let me know, and I'll see how I can clarify.
As far as I know, you're not going to be able to meaningfully interact with the sandboxed JavaScript using the Chrome console.
Interact with the BlackKnight under difficulty = 'easy';
BlackKnight is prepared before your code. Doing a
console.log(BlackKnight)
should show you that the object does exist.I don't want to give away too much, but (at least for easy difficulty) you should be able to solve the kata simply by inspecting that object (there are many ways to do this; you could iterate over the object properties, for example).
If BlackKnight was undefined or something for you, that's a fair sign something went wrong with the kata setup. In that case, would you mind letting me know? If you can't submit the kata, please post your code (marked as spoiler) below.