Bit #34
Using Array from()
and keys()
methods of ES6, we can create array from 0
to n
like this:
or
To create an array starting from 1
:
Using Array from()
and keys()
methods of ES6, we can create array from 0
to n
like this:
or
To create an array starting from 1
: