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.
Nope, I think the first comment's correct.
You can't multiply an integer by a string, but you CAN multiply a string with an integer.
Crazily brilliant
this is the way.
because he used 'i' and the first used 'x'
Cool!
Just when I think I did good, someone else does it in one line TT
This solution was sick.
Funny puzzle...
because despite having its dangers, the solution is beautiful to see, in the context of codewars, this type of solution comes out ahead... multiple 'ifs' are sometimes not very elegant..
I just read some comments below that clearly state you shouldn't use eval() for these kinds of purposes because eval() will
run absolutely anything, therefore it's potentially extremely hazardous to use it. So, explain to me: why the 724 Best Practices?
did the same lol
Nice!
convert value1 and value 2 to strings first. Your code doesn't evaluate the values of value1 and value2. Say value1 = 1 and value2 = 3, your code is trying to evaluate value1 + value2 whereas it should be evaluating 1 + 3.
clever, I'm borrowing this!
no he mean he use "join" method while he can do this like this
Loading more items...