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.
Mr.Obvious :D
the same way i solved problem. which is faster? replace or repeat?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
it is not.. in javascript, anything divided by zero equals to infinity..
so infinity will always be greater than 2
Unless of course, it is negative infinity haha..
in that case negative infinity will always be lesser than 2
And also, if you got 0 dragons to kill and 0 bullets to use
in javascript, 0 divided by 0 will be NaN
Well.. the story clearly says there will be dragons and as a hero you should always bring a weapon if you're gonna kill that dragon..
so negative bullets is highly unlikely
also, 0 dragons and 0 bullets
But you got a point! HEHE
Nice practice.
If dragons == 0 then it will be mistake
Exactly as Jotha said, that was my reasoning. Return does the same as break here.
How come it doesnt add \n after last iteration?
thank you so much !!!
Clear explanation:)!
My bad, i don't often comment and wasn't aware that they could see my reply
Please use a spoiler flag next time, or anyone is able to see your message from the dashboard.
This comment is hidden because it contains spoiler information about the solution
I get the whole code but how does it place the exclamation marks to the end of the sentence?which part of the code make that happen?
Loading more items...