array range of code example Example: array of range of numbers k=5 console.log( Array.from({length:5},(v,k)=>k+1) )