Programming Languages JavaScript Objective
Mar 03, 2013

What is the correct syntax array in JavaScript?

Choose the correct answer:
A) var txt = new Array("tim","kim","jim")
B) var txt = new Array="tim","kim","jim"
C) var txt = new Array:1=("tim")2=("kim")3=("jim")
D) var txt = new Array(1:"tim",2:"kim",3:"jim")
Detailed Explanation

Option A is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback