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

Empty array 
var array = [];

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

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


Messages In This Thread
How to create arrays in javaScripts? - by Kajal - 06-07-2017, 12:19 PM
RE: How to create arrays in javaScripts? - by Chamod - 05-31-2018, 10:05 PM

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

Forum Jump:


Users browsing this thread: 4 Guest(s)