An object is another important thing. Everything is an object. Object break big element and sort its small part by part. Objects contain have much value like function etc. Every object has a name and every object have property and property value
An array stores multiple values in a single variable. It’s a power an array. An array is also a special variable. We can access the values to an index number like 0,1,2,3,4,5 and so on. We should use an array when you want the element names to be numbers.