The data structure that mirrors the real world — and the backbone of nearly everything in JS. In my last article, we talked about arrays — ordered lists of values accessed by index. Arrays are great when you have a collection of similar things: a list of fruits, a bunch of scores, a set of tasks. But what happens when you need to describe a single thing with multiple properties? Let's say I want to represent myself in code. I have a name, an age, a city, an email, and a skill set. Do I create five separate variables? Do I shove them all into an array? // Option 1: Separate variables — messy, no connection between them let name = " Pratham " ; let age = 22 ; let city = " Delhi " ; // Option 2: An array — but what does index 0 mean? What's index 2? let person = [ " Pratham " , 22 , " Delhi " ]; // person[0]? Is that the name? The age? No way to tell without checking. Enter fullscreen mode Exit fullscreen mode Neither option is great. What you actually want is a way to label each piece of data.…