By Mark E. Daggett
Learn how to make extra effective apps, with only one language!
* comprises a number of hands-on examples
* Explains implementation of real-time apps together with Socket. IO and HTML5, and WebSockets
* Addresses functional Node. js merits from particular layout choices
* contains an interactive on-line part with pattern chapters
* Explains parts of stand out apps together with brevity and benchmarks
- Node.js Design Patterns
- Learning from jQuery: Building on Core Skills
Log(+'10'); 59 Chapter 4 ■ Jargon and Slang Context-Aware Coercion Many built-in core objects can be coerced and therefore support unary and binary operations. The coerced object tailors the return values of valueOf() and toString() to be contextually meaningful. Take the built-in Date object, for example. log(new Date() + ''); Coercion Gotchas Knowing the order of operations for type conversion should enable you to create meaningful conversion values for your own objects. That way, when your object is coerced, just like the built-in Date object it can return a contextually aware result.