Course · Section 11: Working With Arrays · Lecture 174: More Ways of Creating and Filling Arrays
Implement `rangeSquares(n)` returning `[0, 1, 4, 9, ...]` of length `n` using `Array.from` with a map callback.
+ 1 hidden test run on Submit.
Array.from with a length and a map callback generates and transforms in one step.
Run your code to see results.