David Herman
Genre
More books by David Herman…
“With the handy map method of arrays (introduced in ES5), we can completely eliminate the loop details, implementing just the element-by-element transformation with a local function: Click here to view code image var names = [" Fred", "Wilma", "Pebbles"]; var upper = names.map( function( name) { return name.toUpperCase(); });”
― Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript
― Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript
“JavaScript¡¯s global namespace is also exposed as a global object, which is accessible at the top of a program as the initial value of the this keyword. In web browsers, the global object is also bound to the global window variable. Adding or modifying global variables automatically updates the global object: this.foo; // undefined foo = "global foo"; this.foo; // "global foo”
― Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript
― Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript
“Functions that keep track of variables from their containing scopes are known as closures.”
― Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript
― Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript
Is this you? Let us know. If not, help out and invite David to Å·±¦ÓéÀÖ.