You are not logged in.

#1 2015-02-28 09:52:54

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

How to append a value to an array of Java Script?

Question:
How to append a value to an array of Java Script?

Option A):
arr[arr.length-1] = value
Option B):
arr[arr.length*1] = value
Option C):
arr[arr.length] = value
Option D):
arr[arr.length+1] = new Arrays()

Correct Answer is Option C):
arr[arr.length] = value


Failure is the first step towards seccess.

2015-02-28 09:52:54

Advertisement
Ads By Google

Re: How to append a value to an array of Java Script?



\n

Board footer