0

What is arrays

i tried to understand that, i cant. please help me

10th Jul 2018, 9:01 AM
סתם משחק בכיף
סתם משחק בכיף - avatar
6 Answers
0
Arrays are objects which can store multiple values, each referenced by an index number, starting from zero.
10th Jul 2018, 9:06 AM
Vedant Bang
Vedant Bang - avatar
+ 4
Hello, סתם משחק בכיף ! An array is an ordered set of data, not necessarily one type, which is identified by one or more indexes. The first type of array is static. It is present in all high-level languages.
10th Jul 2018, 9:08 AM
Alexander Sokolov
Alexander Sokolov - avatar
0
Example in JavaScript let arr = [123,173,783,627]; this is an array you can use the elements of an array by referencing it using square brackets Console.log(arr[2]); this prints 783
10th Jul 2018, 9:07 AM
Vedant Bang
Vedant Bang - avatar
0
thank you. tell me if i am right. arrays are like int but you can store number of values in the same name
10th Jul 2018, 9:09 AM
סתם משחק בכיף
סתם משחק בכיף - avatar
0
you can store all types of data in an array
10th Jul 2018, 9:10 AM
Vedant Bang
Vedant Bang - avatar
0
example string array in JavaScript let arr = ["Cat","Dog","Snake"];
10th Jul 2018, 9:11 AM
Vedant Bang
Vedant Bang - avatar