You are not logged in.

#1 2015-02-28 09:50:26

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

Correct way to write a JavaScript array

Question:
Which is the correct way to write a JavaScript array?

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

Correct Answer is Option B):
- var txt = new Array("arr ","kim","jim")


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-02-28 09:50:26

Advertisement
Ads By Google

Re: Correct way to write a JavaScript array



\n

Board footer