3 ms·
Since nobody has mentioned it yet, my first introduction to that = this; was JavaScript: The Good Parts, Unearthing the Excellence in JavaScript by Douglas Cro
by adolph 10y ago
Since nobody has mentioned it yet, my first introduction to that = this; was JavaScript: The Good Parts,
Unearthing the Excellence in JavaScript by Douglas Crockford
Well worth a read for understanding the differences and relative powers of a prototypical language and how to get it to behave almost like a classical one. I think the one big thing it missed was immediately envoked function expressions.
http://shop.oreilly.com/product/mobile/9780596517748.do http://shop.oreilly.com/product/mobile/9780596517748.do