“Lexical scope means that we can determine the scope of a variable by reading our code.” — 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 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 Copy Share Image
“You’ll also hear developers refer to === (strict equality) as the “identity” operator.” — 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 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 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 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 try to… — 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. So be… — Eric Freeman 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. To” — Eric Freeman Copy Share Image
“If the two values have different types, try to convert them into the same type and then compare them” — Eric Freeman 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 page itself… — Eric Freeman 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 can use… — Eric Freeman Copy Share Image
“When you pass zero to setTimeout, you’re asking JavaScript to run your timeout handler as soon as it possibly can — and this leads… — Eric Freeman 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
“Lexical scope means that we can determine the scope of a variable by reading our code.” — Eric Freeman 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 treat like… — Eric Freeman Copy Share Image