Digital Marketing

Our forum is Describe for what SEO stands for, tips of Social Media Marketing, How to deal with it. Learn the new ways of doing Digital Marketing....................

SEO Forum,Dofollow Forum,High PR Forum,startwithclck,Submit a guest post,Bluehost Review: Shared Hosting for WordPress,Bluehost Review,Bluehost Reviews,bluehost hosting,How to get backlink from Wikipedia,

You are not connected. Please login or register

How to create arrays in JavaScript?

Go down  Message [Page 1 of 1]

1 How to create arrays in JavaScript? on Wed Dec 17, 2014 2:38 pm

There are two ways to create array in JavaScript like other languages:

a) The first way to create array
Declare Array:

Code
Collapse | Copy Code
var names = new Array();
Add Elements in Array:-
names[0] = "Vikas";
names[1] = "Ashish";
names[2] = "Nikhil";

View user profile http://digitalmarketing.niceboard.com

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum