Currently I’m doing this challenge:
Until this, I thought that any array inside an array was called “multi-dimensional array”, but the concept “nested” apparently refers to the same thing. So which is it? Are they the same thing perhaps?
Yeah, a multi-dimensional array is an ‘array of arrays’ which is an example of nested arrays. In this case, you have an array of objects, and one of the object properties is itself an array.
You’ll see terms like “multi-dimensional array”, “jagged array”, “nested array”, and “n-dimensional array” used semi-interchangeably. You might encounter people who refer to the parent array as “multi-dimensional” and then the array elements as “nested arrays” or “sub-arrays”. Programming jargon is very amorphous .