geometricProgression
Initializes an array containing the numbers in the specified range where start and end are inclusive and the ratio between two terms is step.
Returns an error if step equals 1.
- Use
Array.from(),Math.log()andMath.floor()to create an array of the desired length,Array.prototype.map()to fill with the desired values in a range. - Omit the second argument,
start, to use a default value of1. - Omit the third argument,
step, to use a default value of2.