“methods in objects are properties too. They just happen to have a function assigned to them.” — Eric Freeman Objects 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
“Here’s the short story: functions are objects in JavaScript. In” — Eric Freeman Functions Copy Share Image
“You’ll also hear developers refer to === (strict equality) as the “identity” operator.” — Eric Freeman Operator Copy Share Image
“Remember, null is intended to represent an object that isn’t there.” — Eric Freeman Null Copy Share Image
“An expression is anything that evaluates to a value. 3+4” — Eric Freeman Depression 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
“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
“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
“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
“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
“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
“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
“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
“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 Acknowledgments Copy Share Image
“Q: Q: You said getElementsByTagName returns a list. Do you mean an array? A: A: It returns an object that you can… — Eric Freeman Technology 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
“JavaScript: When an event occurs, like the ones you’ve mentioned, that event is added to a queue. I don’t even look at it… — Eric Freeman Queue 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
“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
“Math is not a constructor, or even a function. It’s an object. As you know, Math is a built-in object that you… — Eric Freeman Constructor Copy Share Image
“position: absolute” positions an element based on the position of its most closely positioned parent.” — Eric Freeman Positioned Copy Share Image
“Lexical scope means that we can determine the scope of a variable by reading our code.” — Eric Freeman Programming Copy Share Image
“If the two values have different types, try to convert them into the same type and then compare them” — Eric Freeman Different types 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
“The hasOwnProperty method returns true if a property is defined in an object instance. If it’s not, but you can access that… — Eric Freeman Copy Share Image
“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
“When you delete a property, you’re not just deleting the value of the property, you’re deleting the property itself. And, if you… — Eric Freeman Deleting Property Copy Share Image
“Now, when we have an environment that has a value for each of the free variables, we say that we’ve closed the… — Eric Freeman Copy Share Image
“when you assign a value to a variable name that hasn’t been previously declared, it is treated as a new, global variable.… — Eric Freeman Technology Copy Share Image