Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is a way to append a value to an array?

Answer Posted / venkateswaran

We can append a value in a array using two methods
1.push() - add elements in end of the array
2.unshift() - add elements in begining of the array.

For example;
var arr = new Array(3);
arr[0] = "Venkat";
arr[1] = "Sathya";
arr.push("Meena")

Is This Answer Correct ?    23 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between undefined variable and undeclared variable?

941


How do you target a specific frame from a hyperlink?

922


Which companies are using node js?

882


Can I write javascript in notepad?

938


How can javascript be used to improve the "look and feel" of a web site? By the same token, how can javascript be used to improve the user interface?

916


How to get complete current page url with javascript?

922


Define unescape() function?

984


What is difference between scripting and programming?

900


What are global variables in javascript?

1021


How to use one javascript function for multiple input fields?

2049


How do I run javascript on my iphone?

969


What is variable typing?

1021


How to capture the Image width and height using QTP script ? Kindly answer plz.... Thanx in adavance...

4010


Is a parabola a function?

903


How do functions work in javascript?

956