A

Admin • 828.70K Points
Coach

Q. 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 - Option(D)
  • Views: 10
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.