+ 6

I need help in understanding arrays......

5th Jul 2019, 11:48 AM
Priya Sharma
Priya Sharma - avatar
9 Respuestas
+ 3
usage: arrays can store multiple objects or primitive data-types. for example you can fill an array with Objects of a specific type and update all objects with just 3 lines of code. (with a for-loop) also an array is more dynamic than plain variables. multidimensional arrays can be used to represent a table (rows and colums). or many other things
6th Jul 2019, 9:06 AM
Anton Böhler
Anton Böhler - avatar
+ 6
Thanks for help ☺☺
7th Jul 2019, 10:17 AM
Priya Sharma
Priya Sharma - avatar
+ 5
If you are a sports fan, consider comparison of array and variables with a boxer and a soccer/rugby/cricket team. A boxer, much like a variable, is a one-person team: the team can only accommodate one player/member at a time. But an array is a form of variable that can accommodate more players/members at one time under one name. Further, you could say multi-dimensional arrays, like many-member teams, can have smaller groupings inside to describe, for example defense, midfield, forwards. So int team[2][3]={{123},{456}}; so you have 2 groups each having 3 elements/members.
7th Jul 2019, 10:07 AM
david chongo
david chongo - avatar
+ 4
I am getting confused in arrays in *js*
5th Jul 2019, 2:03 PM
Priya Sharma
Priya Sharma - avatar
+ 4
I am confused how to use of arrays and also multidimensional arrays
6th Jul 2019, 6:54 AM
Priya Sharma
Priya Sharma - avatar
+ 2
You have to tell us *exactly* what you don't understand. Otherwise we'll just repeat what you saw in the tutorial and you're none the wiser.
5th Jul 2019, 12:29 PM
HonFu
HonFu - avatar
+ 2
ok, and at what part are you getting confused at? -at declaration/init. -at filling -at functions of arrays -at usage -at loops -at use of arrays -at arrays of arrays (multidimensional arrays) ?😅 explain what the problem is. exactly!
5th Jul 2019, 4:24 PM
Anton Böhler
Anton Böhler - avatar
+ 1
and perhaps in which language, ...
5th Jul 2019, 1:21 PM
Anton Böhler
Anton Böhler - avatar