Are there only one-dimensional arrays in JavaScript

Frontend 2021-08-22 20:48:07 0 2,980

JavaScript supports two-dimensional and more than two-dimensional arrays. However, in JavaScript, a one-dimensional array must be created for two-dimensional and above two-dimensional arrays, and then the elements in the one-dimensional array are treated as an array and nested in order to obtain an array of more dimensions.

#array#


Your opinion

Already have 0 Article answer