+ 6
I need help in understanding arrays......
9 Answers
+ 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
+ 6
Thanks for help âșâș
+ 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.
+ 4
I am getting confused in arrays in *js*
+ 4
I am confused how to use of arrays and also multidimensional arrays
+ 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.
+ 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!
+ 1
and perhaps in which language, ...