You are not logged in.
Pages:: 1
#1 2015-02-28 09:50:26
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.
Offline
2015-02-28 09:50:26
- Advertisement
- Ads By Google
Re: Correct way to write a JavaScript array
\n
Pages:: 1