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
0
Answer:
d.) is correct answer.
Explanation:
Tq
Similar questions