Create an array containing 1 to n numbers in javascript is not a complex problem. […]