Computer Science, asked by bhuvirat, 1 day ago

Which is the correct way to write a JavaScript array?
a.var arr1 = new Array:1 =("john")2=("ram")3=("tom")
b. var arr1 = new Array="john","ram","tom"
c.var arr1 = new Array(1:"john",2:"ram",3:"tom")
d.var arr1 = new Array("john","ram","tom")​

Answers

Answered by ajack
0

Answer:

d.) is correct answer.

Explanation:

Tq

Similar questions