Basic Data Structures: Objects

Jay Wen
2 min readJul 15, 2020

To continue the data structure series I have going on, I’ll be talking about objects in this post.

My previous post on arrays can be found here.

Objects are another data structure that has a key and value pair. Object data cam be accessed through properties. Using objects as a data structure is faster than arrays when looking up data.

let cat = {
name: 'Bella',
color: 'orange',
personality: 'fiesty',
friends: 'Cookie',
enemies: ['Acrobat', 'Daemon', 'Barack']
}
//To access the…

--

--

Jay Wen

Hey! I’m a full stack software engineer. Here’s where I document my technical learning and any tips/skills I can share as I continue to learn. :)