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.
mine is better
It seems you managed to get it?
Maybe this article can still help? https://docs.codewars.com/training/training-example
i am super confused, am i suppose to actually get a number or just write a program that says value. can someone please help
Approved
nice one bro (:
Your codes are very clean
This is because the expected output is a number, not a string. Also, the given operators are only limited to
+-*/
, so you do not need to handle invalid operators by returning aNan
string.You are using the wrong variable name, should be
operator
, notoperation
That is because you are not handling the default case, Read this for more info
Why does it say that the returned value is not a number. I had to make the type any
This comment is hidden because it contains spoiler information about the solution
'KISS'
Before starting that kata, I went thru commentary. After first comments, I wanted to skip to next one. But I gave it a try. So I launched this kara, with the vibe from comments behind my neck :) Was expecting something impossiblle to achive. Decided to do it with a first idea I had. If it work, fine. If not, go to next one. First arrmept and jackpot. Afterwards, I did some analyse on that kara. I can easly say that this is how kata's should be done. Especially description. Short and on point!!
What I've learnd after this kata, don't judge book by it's cover. Don't be afraid to test you skills anyway and always. It gives hell of a boost when them test are green. Last but not least, keep it simple!!
test won't run
Easy and funny!
woah, so that's what it was
Loading more items...