From the course: JavaScript Essential Training
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
Accessing objects - JavaScript Tutorial
From the course: JavaScript Essential Training
Accessing objects
- [Narrator] In the real world, if you want someone to hand you something you mentioned it by name. So you say, hey, can you hand me that backpack, please? The same thing goes for JavaScript. Anytime you want to access an object or anything else contained inside a variable you simply call it by its name and JavaScript will hand it to you. In the exercise files for this movie there is an object with the name backpack. If you go over to the console you can call that object by simply naming it directly. So if I type in backpack here and hit return I get the entire object and I can then dig deeper into it to see what's going on. So here I can see all the properties and the methods and I can even open the methods to see what they contain. It works the same way in JavaScript. So let's say you want to output this object in its entirety in the console for reference and do so automatically so you don't have to go into the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Objects: A practical introduction4m 53s
-
(Locked)
JavaScript objects: The code version2m 57s
-
(Locked)
Object containers2m 22s
-
(Locked)
Object properties55s
-
(Locked)
Accessing objects2m 32s
-
(Locked)
Accessing object properties5m 35s
-
(Locked)
Practice: Build a new object1m 18s
-
(Locked)
Object methods6m 29s
-
(Locked)
Practice: Build a new method56s
-
(Locked)
Classes: Object blueprints6m 35s
-
(Locked)
Object constructors2m 21s
-
(Locked)
Practice: Build a new object with a constructor1m 13s
-
(Locked)
Global objects7m 47s
-
(Locked)
Challenge intro: Create a new object type2m 5s
-
(Locked)
Solution: Create a new object type3m 16s
-
-
-
-
-
-
-
-
-