| |
|
What are the different characteristics of JavaScript Arrays? Question Posted on 02 Aug 2022 Home >> JavaScript >> JavaScript Questions >> What are the different characteristics of JavaScript Arrays? |
What are the different characteristics of JavaScript Arrays?
Below are the three main characteristics of JavaScript Arrays:-
(1)JavaScript create shallow copies:-Here shallow copies means that we can create a distinct copy of an array but thst is without altertion done in original array.
(2)JavaScript different data types:-As the topics define different data types JavaScript arrays can contains a mix of different datatypes like numbers, strings, booleans, null values etc.
(3)Array are zero indexed:-Index here is means posiion. And here first element in array is at index 0. In JavaScript and likewise in other programming languages, the right word to use is index and not position. | |
|
|
|
|