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.
Not getting how are you getting the second value (index) with ~j... How will this look with no array function? cant get it...
Doubt!! Consider the number 89.
for "8" the initial value added is 0, as initial value is specified in reduce method.
So for "9" , the accumulator(8) will be added to 9.
Is 0 used as initial value for all indexes in array?
Great explanation PixelLemons! :)
I like the soloution with the extra + to convert it
very clear!
very clear!
Why do you need the second plus "x + +y" ?
The "i" means case-Insensitive
Nice solution!
Were does 'i' come from in "RegExp(exp, 'i')"?
Great solution!
Amazing solution!
Create anonymous function with parameter named 'x' like function(x) { return ... }
Where ... is expression after '=>' =)
Same as:
howManySmaller =function(arr,n) {return arr.map(function(x){return x.toFixed(2)}).filter(function(x){return x<n} ).length}
This comment is hidden because it contains spoiler information about the solution
What does this part do "x => x" ?
Loading more items...