Media Summary: standard if statement and for loop; i couldnt find a reliable one-liner kata link: ... this one uses an if statement and the conditional (ternary) operator kata link: ... reworked version: this one's got Array.from(), map(), and parseInt()
Codewars Multiply 8kyu Tdd In Javascript - Detailed Analysis & Overview
standard if statement and for loop; i couldnt find a reliable one-liner kata link: ... this one uses an if statement and the conditional (ternary) operator kata link: ... reworked version: this one's got Array.from(), map(), and parseInt() updated version: another ternary operation with a remainder operator. we use Math.abs() and the String() constructor Math.abs() info: ... template literals, map(), Array() constructor, and more.
Here's how to double some characters kata link: