Loading
Current section: 1. Objects 7 exercises
lesson

Intro to Objects

Loading lesson

Transcript

00:00 Alright. Welcome to the objects exercise. The objects are pretty much everywhere in JavaScript, and so I'm excited for you to learn all about them. So here's a couple pieces of intro to give you that, you can take with you in these exercise steps. So, without objects, things are scattered all over the place and it's super annoying.

00:18 With objects, you can kind of take all these things and put them together in a nice little basket that you can take around with you and they can be associated, just by nature of the fact that they're all together in one object. You can have special types for an object and, we can even name those types and we're gonna talk about that in this exercise. And you can access, properties on an object. You've been doing that this whole time with the console dot log. Console is an object.

00:44 Log is a property on the object. And so that's what we are gonna learn how to do in this exercise. You can also use bracket notation and we'll see why that's useful. And you can use this to set values inside of an object as well. And then we're also gonna talk about optional properties.

01:01 So nickname is optional. And how do you access that? We'll talk about that too. So it's gonna be a really great exercise. I'm looking forward to you having you join me for it.

01:09 So let's jump into it.