Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create arrays in javaScripts?
#1
How to create arrays in javaScripts?
Reply
#2
(06-07-2017, 12:19 PM)Kajal Wrote: Only Registered users can view linksHow to create arrays in javaScripts?

Empty array 
var array = [];

Array with Elements
var cars = ["Saab""Volvo""BMW"];

Adding new Elemets :
cars .push("Nissan");
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Why are arrays usually processed with for loop? beingchinmay 0 1,049 03-10-2016, 05:38 PM
Last Post: beingchinmay
  I need to learn how to create a php base chatting site chamara20 3 3,395 04-20-2014, 07:14 PM
Last Post: Raiden

Forum Jump:


Users browsing this thread: 1 Guest(s)