You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-02-28 09:50:28
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.
Offline
2015-02-28 09:50:28
- Advertisement
- Ads By Google