Currently, I am attempting to populate an array with a series of numbers, with the requirement that the array begins with a certain value and ends with another.
My attempt at this task involved the code snippet below:
pageArray = Array(finalPageValue).fill(1).map((x,i = initialPageValue) => i+1);