how many years should ne in array agnath
Answers
Answered by
1
Answer:
please mark me as brainliest and follow me
Explanation:
Objects allow you to store keyed collections of values. That’s fine.
But quite often we find that we need an ordered collection, where we have a 1st, a 2nd, a 3rd element and so on. For example, we need that to store a list of something: users, goods, HTML elements etc.
It is not convenient to use an object here, because it provides no methods to manage the order of elements. We can’t insert a new property “between” the existing ones. Objects are just not meant for such use.
There exists a special data structure named Array, to store ordered collections.
Similar questions
Social Sciences,
3 months ago
English,
3 months ago
Computer Science,
3 months ago
English,
6 months ago
Geography,
6 months ago
Economy,
11 months ago
Science,
11 months ago