In this video we're going to look at objects again and see some of the things …we can actually do with and to them. So I have my animal object here with a …bunch of properties. If I want to inspect this object and find …out what one of its properties is, here's how I do that. …Here's the variable name. So, animal. …And if I want to find out what its quote is, I can use .quote like this. …And 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, you need to surround each key with these quote marks, single or double …quotes will work. But when I'm retrieving a value from an …object, using this dot notation, I don't need those quotes.…
And indeed, if I include the quotes, it just won't work. …Like this, syntax error. But there's another syntax that I can …use, where I actually do use the full string. …And for keys that include special characters like spaces or other things, …you'll actually need to use this other notation. …
- Enabling Firebug and web inspectors
- Using a text editor
- Declaring and assigning a variable
- Booleans and the quest for truth
- Working with objects and arrays
- Using operators and control structures
- Iterating with loops
- Objects, references, and functions
- Understanding variable scope
Skill Level Beginner
Q: In "How to enable Firebug and web inspectors," at the Chrome Canary part, the author mentions going to the View menu, and then Developer. My Canary has no menu bar. The author uses a Mac, whereas I have Windows. How do I get to the same place?
A: Click the menu button at the top right of Chrome, select More Tools, and then choose Developer Tools.
1. Getting Started
Our friend, the text editor3m 35s
2. Variables and Types
3. Objects, Arrays, and More
4. Operators and Control Structures
5. Iterating with Loops
- 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.