Quotes from Eric Freeman
A callback works like this: give a function to the object that knows about the event. When the event occurs, that object will call you back, or notify you, by calling that function. You're going to see this pattern in JavaScript for a variety of events.
~ Eric Freeman
BazillionQuotes.com
As it turns out, one of the things the new operator does behind the scenes when the object is created is to store information that allows it to determine, at any time, the constructor that created the object. And
~ Eric Freeman
BazillionQuotes.com
Window is the global object. It may seem a little weird, but the window object acts as your global environment, so the names of any properties or methods from window are resolved even if you don't prepend them with window. In addition, any global variables you define are also put into the window namespace, so you can reference them as window.myvariable.
~ Eric Freeman
BazillionQuotes.com
When you declare any kind of global variable or define a global function, it is stored as a property in the window object. So
~ Eric Freeman
BazillionQuotes.com
When you call an object's method, this is set to the object whose method was called. If the method is not found in that object, and is found in the prototype, that doesn't change the value of this. this always refers to the original object — that is, the object whose method was called — even if the method is in the prototype. So
~ Eric Freeman
BazillionQuotes.com
You see, now that we have a prototype, if we add any methods to that prototype, even after we've already created dog objects, all dogs inheriting from the prototype immediately and automatically get this new behavior.
~ Eric Freeman
BazillionQuotes.com
An object named arguments is available in every function when that function is called. You
~ Eric Freeman
BazillionQuotes.com
You can use arguments to create a function that accepts a variable number of arguments, or create a function that does different things depending on the number of arguments passed to it. Let's
~ Eric Freeman
BazillionQuotes.com
You'll also hear developers refer to === (strict equality) as the "identity" operator.
~ Eric Freeman
BazillionQuotes.com
If you change any property in the prototype, it affects all the objects that inherit from that prototype, unless that object has overridden that property.
~ Eric Freeman
BazillionQuotes.com
When I'm loading a page from my computer, like we are in these exercises, what is my origin? A: A: Good question. In that case your origin is known as the "Local Files" origin, which
~ Eric Freeman
BazillionQuotes.com
