There are basic properties supported by arrays. In Solidity, due to the multiple types of array, not every type supports all of these properties.
These properties are as follows:
- index: This property used for reading individual array elements is supported by all types of arrays, except for the string type. The index property for writing to individual array element is supported for dynamic arrays, fixed arrays, and the bytes type only. Writing is not supported for string and fixed sized byte arrays.
- push: This property is supported by dynamic arrays only.
- length: This property is supported by all arrays from read perspective, except for the string type. Only dynamic arrays and bytes support modifying the length property. ...