“A function without a return statement returns undefined.” — Eric Freeman Technology Copy Share Image
“JavaScript: Don’t judge me by my bad parts, learn the good stuff and stick with that!” — 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.… — Eric Freeman Technology 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
“NaN never equals any other value, including itself, so to test for NaN use the function isNaN.” — 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… — 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
“Composite Pattern takes the Single Responsibility design principle and trades it for transparency.” — Eric Freeman Transparency 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
“An object named arguments is available in every function when that function is called. You” — Eric Freeman Technology 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 Computer science Copy Share Image
“When you pass a primitive value it is copied into the parameter. We call this “passing by value.” So if you change… — Eric Freeman Technology Copy Share Image
“When I’m loading a page from my computer, like we are in these exercises, what is my origin? A: A: Good question.… — Eric Freeman Computers Copy Share Image
“You see, now that we have a prototype, if we add any methods to that prototype, even after we’ve already created dog… — Eric Freeman Habits 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
“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 Technology 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
“That’s because the default prototype for any instance you create (assuming you don’t change it) is Object.” — Eric Freeman Copy Share Image
“Remember what happens when you call getElementById and the id doesn’t exist in the DOM? You get null. Same thing with getAttribute.… — Eric Freeman Copy Share Image
“position: absolute” positions an element based on the position of its most closely positioned parent.” — 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
“using constructors still doesn’t prevent us from changing an object into something else later, because” — Eric Freeman Technology Copy Share Image
“The responsibility of the model is to store the state of the game and implement logic that modifies that state.” — Eric Freeman Responsibility Copy Share Image
“Joe: What’s the target? Judy: Like I said, it’s the element that generated the event. Like if you click on a specific image, the… — Eric Freeman Goals 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
“Now when we use the function keyword this way — that is, within a statement, like an assignment statement — we call… — 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
“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
“JavaScript doesn’t have a character type. So characters are returned as new strings containing one character.” — Eric Freeman 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
“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
“Window is the global object. It may seem a little weird, but the window object acts as your global environment, so the… — Eric Freeman Technology 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 Closure Copy Share Image