Codewars 8 Kyu Find Nearest Square Number Javascript - Detailed Analysis
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() this one uses a for loop and the reduce() method kata link: ... updated version: First use map(), then use reduce() template literals, map(), Array() constructor, and more. gettin wild with template literals, the charCodeAt() method, and the UTF-16 chart.
standard if statement and for loop; i couldnt we're doing .map(), .slice(). and .filter() here. this one showcases the map() method and the Math.sqrt() function. standard example of using the reduce() method.
Photo Gallery



















