Learn about accessors by name or index.
- [Instructor] In this video we're going to continue…looking at objects and see some of the things that we…can actually do with and to them.…I have my bird object here with bunch of properties.…If I want to inspect the object and find out what one of…its properties is, here's how I can do that.…I can type the variable name and then a dot.…So if I want to see what the quote is, I can search type…quote and I can see that's "nevermore".…I'll execute that.…And indeed, I get back "nevermore".…Now remember I said that each of these keys is a string.…
And when you're creating these objects, to be safe,…we can surround each key with quote marks,…single or double quotes work.…But, when I'm retrieving a value from an object,…using dot notation, this will not work.…I get a syntax error when I try that.…But there's another syntax that I can use where I actually…do use the full string.…So if I try this again, by typing an up arrow,…instead of using the dot, I can use square braces.…And that does work.…If the keys that I've used include special characters…
- Using a text editor
- Declaring and assigning variables
- Booleans and the quest for truth
- Working with objects and arrays
- Using operators and control structures
- Iterating with loops
- Objects, references, and functions
- Promises, async, and await
Skill Level Beginner
1. Getting Started
2. Variables and Types
3. Objects, Arrays, and More
4. Operators and Control Structures
5. Iterating with Loops
7. More Advanced Pieces
Next steps3m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.