Difference between array and object?

Hi there. I have a question: What is the difference between array and object? :smile:

Thanks,
Pummarin :slightly_smiling_face:

How will you rate the quality of this topic?

  • 1
  • 2
  • 3
  • 4
  • 5

0 voters

@Pummarin_The_gamer
Both objects and arrays are considered β€œspecial” in JavaScript. Objects represent a special data type that is mutable and can be used to store a collection of data (rather than just a single value). Arrays are a special type of variable that is also mutable and can also be used to store a list of values.
Hope this helps you