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…