Answers for "what is the syntax of making array in js"

8

create array javascript

[...Array(10).keys()]
//=> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Posted by: Guest on April-22-2020
10

create array javascript

Array.from(Array(10).keys())
//=> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Posted by: Guest on April-22-2020
0

declare array in javascript

const products=["watch", "pc", "mouse", "keyboard"];
Posted by: Guest on September-02-2021

Code answers related to "what is the syntax of making array in js"

Browse Popular Code Answers by Language