Create array of all integers between two numbers, inclusive, in Javascript/jQuery

Solution 1:

var list = [];
for (var i = lowEnd; i <= highEnd; i++) {
    list.push(i);
}

Solution 2:

ES6 :

Use Array.from (docs here):

console.log(
   Array.from({length:5},(v,k)=>k+1)
)