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.
Please use apoiler flag.
This comment is hidden because it contains spoiler information about the solution
The .5 part is just genius
var basically stands for variable; its value can change within the script, as such when hoisting, js will look for another value that me a variable to the same. const basically stands for "constant" as such, the value is fixed. For a short function as such, the value can be fixed!
that is so cool...
where is the downvote button?
I see there's a Javascript version of this kata, so this suggestion is resolved.
it's not recursive solution
My solution now works. It's the same as the best practice solution for JavaScript so I won't post it again here. Thanks for fixing it.
can you please share your code and mark it as spoiler? I know more JS now
Change the kata description. It's unbearable to see how you have to re-read it, and look at the sample tests' arguments and expected results just to grasp the idea that the
S
, which you need to plug into thet = S/V
formula, equals to400
.Javascript translation created
Where does "new Canvas" come from? I'm assuming this is an node package?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comma_Operator
During the replace the function is taking the vowel and adding it to the string k before replacing it.
Loading more items...