Media Summary: another example of the ternary operator in action. we use the reduce() method in this one reduce() info: ... a nice one liner featuring an object and Math.floor()
Overview

Codewars 8 Kyu Grasshopper Messi Goals Function Javascript - Detailed Analysis

another example of the ternary operator in action. we use the reduce() method in this one reduce() info: ... a nice one liner featuring an object and Math.floor() a refresher on the remainder operator (modulus) this one uses the this keyword kata link: this one uses the String() constructor, spread syntax (...), and more kata link: ...

this one uses the sum of integers formula kata link: this one uses the reduce() method kata link: reworked version: using the Array() constructor, fill(), and reduce()instead of n*(n+1)/2. this one uses an if...else statement and classes kata link: here we use the push() method and spread syntax (...) push() info: ...

Gallery

Photo Gallery

Related

Related Patients