“Speaking activates a different part of the brain. If you’re trying to understand something, or increase your chance of remembering it later,… — 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 Technology 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 Closure Copy Share Image
“If you assign a new variable without using the var keyword, that variable will be global, even if you are first assigning… — Eric Freeman Technology Copy Share Image
“two forms of the Adapter Pattern: object and class adapters. Class adapters require multiple inheritance. You can implement more” — Eric Freeman Technology Copy Share Image
“If you change any property in the prototype, it affects all the objects that inherit from that prototype, unless that object has… — Eric Freeman Technology Copy Share Image
“an important thing to know about JavaScript: there’s one queue and one “thread of control,” meaning there is only one of me… — Eric Freeman Queue Copy Share Image
“Well, say you write a handler and it requires a lot of computation — that is, something that takes a long time… — Eric Freeman Computation 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
“By lexical scope we mean that JavaScript’s rules for scoping are based purely on the structure of your code (not on some… — Eric Freeman Programming Copy Share Image
“When you call an object’s method, this is set to the object whose method was called. If the method is not found… — Eric Freeman Technology Copy Share Image
“You can use arguments to create a function that accepts a variable number of arguments, or create a function that does different… — Eric Freeman Copy Share Image
“The large number of acknowledgments is because we’re testing the theory that everyone mentioned in a book acknowledgment will buy at least… — Eric Freeman Copy Share Image
“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 Technology Copy Share Image
“As it turns out, one of the things the new operator does behind the scenes when the object is created is to… — Eric Freeman Behind the scenes Copy Share Image
“JavaScript doesn’t have a character type. So characters are returned as new strings containing one character.” — Eric Freeman Copy Share Image
“Two objects are equal only if the variables containing the object references point to the same object.” — Eric Freeman Technology Copy Share Image
“If you give it an index that is greater than or equal to the length of the string, it returns the empty… — Eric Freeman Copy Share Image
“There are five falsey values in JavaScript: undefined is falsey. null is falsey. 0 is falsey. The empty string is falsey. NaN… — Eric Freeman Technology 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 Technology Copy Share Image
“Web Workers have a global function named importScripts that you can use to import one or more JavaScript files into your worker.… — Eric Freeman Technology 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 Code Copy Share Image
“If I had a dime for every time I’ve heard that one”, thought Larry, knowing that spec-change-no-problem was a fantasy. “And” — Eric Freeman Money 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 Technology Copy Share Image
“When you declare any kind of global variable or define a global function, it is stored as a property in the window… — Eric Freeman Technology Copy Share Image
“You can extend your object at any time with new properties. To do this you just specify the new property and give… — Eric Freeman Technology Copy Share Image
“methods in objects are properties too. They just happen to have a function assigned to them.” — Eric Freeman Copy Share Image
“Booleans are named after George Boole, an English mathematician who invented Boolean logic. You’ll” — Eric Freeman Copy Share Image
“When you design, solve things in the simplest way possible. Your goal should be simplicity, not 'How can I apply a pattern… — Eric Freeman Design Copy Share Image
“the truth is JavaScript actually makes two passes over your page: in the first pass it reads all the function definitions, and… — Eric Freeman Programming Copy Share Image
“Composite Pattern takes the Single Responsibility design principle and trades it for transparency.” — Eric Freeman Transparency Copy Share Image
“Well, it’s a browser policy, and it says you can’t retrieve data from a domain that is different from the domain the… — Eric Freeman Domain Copy Share Image
“So, we recommend specifying the width and height in the tag attributes, and not setting those properties in CSS unless you really… — Eric Freeman Copy Share Image
“NaN never equals any other value, including itself, so to test for NaN use the function isNaN.” — Eric Freeman Copy Share Image
“concentrate on knowing what is falsey, and then everything else you can consider truthy. Let’s look at some examples of using these… — Eric Freeman Truth Copy Share Image
“A callback works like this: give a function to the object that knows about the event. When the event occurs, that object… — Eric Freeman Technology 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 Technology Copy Share Image