“The NoCommand object is an example of a null object. A null object is useful when you don’t have a meaningful object… — Eric Freeman Copy Share Image
“What does it mean to assign the value null to a variable? How about “We intend to assign an object to this… — Eric Freeman Business Copy Share Image
“One thing that often misleads people learning closures is that they think the environment in the closure must have a copy of… — Eric Freeman Copy Share Image
“In fact, there’s a keyword in JavaScript named this, and that is exactly how you tell JavaScript you mean this object we’re… — Eric Freeman Copy Share Image
“An object named arguments is available in every function when that function is called. You” — Eric Freeman Copy Share Image
“When you link to multiple JavaScript files from your page, all the global variables are defined in the same global space.” — Eric Freeman Copy Share Image
“Using a method to change a property is another example of encapsulation whereby we can often improve the maintainability and extensibility of… — Eric Freeman Programming Copy Share Image
“JavaScript doesn’t have a classical object-oriented model, where you create objects from classes. In fact, JavaScript doesn’t have classes at all. In… — Eric Freeman Copy Share Image
“To write code this way, you need to consider the events that can happen, and how your code should react. Computer science… — Eric Freeman Computer science Copy Share Image
“Remember what happens when you call getElementById and the id doesn’t exist in the DOM? You get null. Same thing with getAttribute.… — Eric Freeman Copy Share Image
“When I’m loading a page from my computer, like we are in these exercises, what is my origin? A: A: Good question.… — Eric Freeman Computers Copy Share Image
“Note that the JSON format doesn’t work with methods (so you can’t include, say, a bark method in your JSON string), but… — Eric Freeman Copy Share Image
“If a variable is declared outside a function, it’s GLOBAL. If it’s declared inside a function, it’s LOCAL.” — Eric Freeman Copy Share Image
“JavaScript has a very powerful object model, but one that is a bit different than the status quo object-oriented language. Rather than… — Eric Freeman Status quo Copy Share Image
“That’s because the default prototype for any instance you create (assuming you don’t change it) is Object.” — Eric Freeman Copy Share Image
“We haven’t done much writing code, but we are reading and understanding code, and that can be just as good. So” — Eric Freeman Programming Copy Share Image
“Booleans are named after George Boole, an English mathematician who invented Boolean logic. You’ll” — Eric Freeman Copy Share Image
“You see, now that we have a prototype, if we add any methods to that prototype, even after we’ve already created dog… — Eric Freeman Habits Copy Share Image
“using constructors still doesn’t prevent us from changing an object into something else later, because” — Eric Freeman Copy Share Image