Difference between Array and Object , JS
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
Object = When you want to store a key/value pair values in a bucket then you will use a object.
Array = When you want to store a simple list of data then you will use Array