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.
Oh... thank you. il'try...
you misunderstood the task. look at the error messages, the sample tests and the description: you are supposed to return a function that can be called. Your current implementation returns a
char
. this is why the tests complain thatcalled object type 'char' is not a function
This comment is hidden because it contains spoiler information about the solution
you are not supposed to write your own
main()
function on Codewars. If you do, the tests cannot work correctly, as they provide their own. Also, please use markdown formatting when posting code.This comment is hidden because it contains spoiler information about the solution