“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
“JavaScript creates all local variables at the beginning of a function whether you declare them or not (this is called “hoisting” and… — Eric Freeman Technology Copy Share Image
“when you send an object the worker gets a copy of it. Any changes the worker makes will not affect the object… — Eric Freeman Technology 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
“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 Technology Copy Share Image
“A string is always a primitive unless you create it in a special way using an object constructor. We’ll talk about object… — Eric Freeman Technology 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
“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
“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