+ 2

What are arrays??

in JavaScript

9th Apr 2018, 1:58 AM
Ram Adarsh Sundram
Ram Adarsh Sundram - avatar
2 Answers
+ 6
arrays are like large containers of data used in storing several,in most cases similar data all at once
9th Apr 2018, 2:03 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 2
In JavaScript arrays are container of same or different data types.. If you want to declare 4 variable..Without array... Then you will have to declare like.. var a = 1; var b = 2; var c = 3; var d = 4; But if you use Array then var yourArray = [1, 2, 3, 4]; which saves time and less code....
9th Apr 2018, 3:21 AM
Johaer_Wasif
Johaer_Wasif - avatar