Media Summary: updated version: yet another example of the classic template literal and ternary operator ... this one uses aa for loop and template literals kata link: using Object.assign() and Array.from() to complete some rooms.
Archived Codewars 8 Kyu Grasshopper Debug Javascript - Detailed Analysis & Overview
updated version: yet another example of the classic template literal and ternary operator ... this one uses aa for loop and template literals kata link: using Object.assign() and Array.from() to complete some rooms. reworked version: using the Array() constructor, fill(), and reduce()instead of n*(n+1)/2. updated version: this one uses the filter() method filter() info: ... a refresher on the remainder operator (modulus)
updated version: here we're gonna use .split(), .reduce(), and .charCodeAt() a nice one liner featuring an object and Math.floor() updated version: just a little bug to fix.