So. I can do this. And I'm doing all this incidentally in my Text Editor because it has this syntax highlighting which makes it very clear what's happening. So right now, this is all commented all the way to the end and it won't stop until I put the second asterisk with the second slash in there. So now these three lines are commented out so the only property of this object that will be defined is holiday. I can undo this. So one note about this. Block comments are really useful and you'll see them all the time. But you need to be careful with these because every once in a while a character like this will appear as something that's actually legitimately not a comment so Douglas Crockford for example recommends never using block comments. That might be overdoing it a little bit and you'll certainly see them a lot. You just need to be careful about using block comments inside of a bunch of active code.
- 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.