Media Summary: this one uses a while loop, an if statement, and the Math.round() static method kata link: ... updated version: this one uses Math.sqrt(), Math.round(), and Math.pow() template literals, map(), Array() constructor, and more.
Codewars 8 Kyu Find Nearest Square Number Javascript - Detailed Analysis & Overview
this one uses a while loop, an if statement, and the Math.round() static method kata link: ... updated version: this one uses Math.sqrt(), Math.round(), and Math.pow() template literals, map(), Array() constructor, and more. updated version: First use map(), then use reduce() this one uses a for loop and the reduce() method kata link: ... we're doing .map(), .slice(). and .filter() here.
creating an array with the Array.from() method. this one showcases the map() method and the Math.sqrt() function. gettin wild with template literals, the charCodeAt() method, and the UTF-16 chart. a little parseFloat() action does the trick. standard if statement and for loop; i couldnt this one uses the Math.hypot() static method kata link: