Which is the correct way to write a JavaScript Array?

 Posted by Vishalneeraj-24503 on 4/26/2015 | Category: JavaScript Interview questions | Views: 1840 | Points: 40
Select from following answers:
  1. var txt = new Array(1:"A",2:"B",3:"C");
  2. var txt = new Array:1=("A")2=("B")3=("C");
  3. var txt = new Array("A","B","C");
  4. var txt = new Array="A","B","C";
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response