Solved

What Is the Correct Way to Write a JavaScript Array

Question 16

Multiple Choice

What is the correct way to write a JavaScript array?


A) var txt = new Array:1=("tim") 2=("kim") 3=("jim")
B) var txt = new Array(1:"tim",2:"kim",3:"jim")
C) var txt = new Array="tim","kim","jim")
D) var txt = new Array("tim","kim","jim")

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions