so you wanna know the deference between arrays and objects ?
im gonna explain it as im explaining to a 6 years old child
arrays are like cups or buckets or containers that has stuff in it when you need an element from it you call it by it’s number which we call “index of the array ” so whenever we call that element inside that array we don't call it by it’s name but by it’s number !
let’s give an example ! let’s say we have a ice cream container and each ice cream has it’s number so when we want to pick vanilla ice cream we call it by it’s number for example 4
and object are like arrays but a little different ! how’s that ? let’s go back to the ice cream example , when it comes to object we can’t call it by it’s name but we call it by it’s key word like the label of the ice cream