You are not logged in.

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

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
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")


Failure is the first step towards seccess.

2015-02-28 09:50:28

Advertisement
Ads By Google

Re: Correct way to write a JavaScript array



Board footer