Media Summary: standard if statement and for loop; i couldnt find a reliable one-liner kata link: ... this one uses the filter() and reduce() methods kata link: this one uses the reduce() method, the String() constructor, and more kata link: ...
Diagnols Sum Codewars Javascript - Detailed Analysis & Overview
standard if statement and for loop; i couldnt find a reliable one-liner kata link: ... this one uses the filter() and reduce() methods kata link: this one uses the reduce() method, the String() constructor, and more kata link: ... this one uses a for loop and the reduce() method kata link: ... this one uses a double for loop, the reduce() method, and more kata link: ... reworked version: a complex (for 8 kyu) .reduce() one-liner with style.
this one uses the for...of statement kata link: this one uses a while loop, the Array.from() method, and more kata link: ... this one uses the Set() constructor, the sort() method, and more spread syntax (. standard example of using the reduce() method. this one uses the isNaN() function, the Number() constructor, and more kata link: ... reworked version: using the Array() constructor, fill(), and reduce()instead of n*(n+1)/2.
this one uses a for loop and the toFixed() method kata link: ...