Media Summary: another example of the ternary operator in action. this one uses the this keyword kata link: updated version: a little bit about class prototype attributes class info: ...
Codewars 8 Kyu Grasshopper Terminal Game Move Function Javascript - Detailed Analysis & Overview
another example of the ternary operator in action. this one uses the this keyword kata link: updated version: a little bit about class prototype attributes class info: ... using Object.assign() and Array.from() to complete some rooms. we use the reduce() method in this one reduce() info: ... a nice one liner featuring an object and Math.floor()
another easy one made hard with Math.max(), split(), and more! reworked version: using the Array() constructor, fill(), and reduce()instead of n*(n+1)/2. this one uses aa for loop and template literals kata link: this one uses the String() constructor, spread syntax (...), and more kata link: ... this one uses the sum of integers formula kata link: a refresher on the remainder operator (modulus)