Lesson 8: Objects and Structured Data in JavaScript
How could a programme know that 91 is a science score rather than just the fourth item in a list? An array gives values an order, but an object gives related information meaningful names. This distinction lets JavaScript represent one structured thing, such as a learner, product or game character. The central idea is that position answers “where?”, while a property name can also answer “what?”
