giving native objects centre stage. It's self-published and available as
a PDF for \$15 through Google Checkout and PayPal (bulk licensing is
The book begins with an explanation of objects and properties:
Objects are explored in detail, with full examples of constructors,
native constructors, literals, and even how values are stored and
copied. Each example has source code with a link to jsFiddle, so it's
particularly object comparison, primitive value object wrapping, and
prototype chain property reference resolution. The language used is
clear and easy to follow:
All object instances have a property that is a secret link (aka proto) to the constructor function that created the instance. This secret link can be leveraged to grab the constructor function, specifically the prototype property of the instance's constructor function.
hasOwnProperty to correctly enumerate over objects are also
explained. In fact, I really couldn't find anything missing. If you've
ever wondered why JSLint is complaining about something, the root cause
is likely to be explained somewhere in this book.
The author even references modern libraries like
It's also encouraging to see solid coverage of
serious power if used carefully. Slightly confusingly,
call are only covered briefly here,
with more thorough coverage in chapter 6. The split between explaining
Function felt slightly awkward, which
is one of the reasons why this book works better taken as a whole rather
than discrete chunks.
the ECMA standard, and explains the cleanest way to mitigate this.
If you've ever wondered how prototypal inheritance works, or just want
It's short -- readable in a handful of sittings, but it works best read
from start to finish.
Although the technical foundation of this book is solid and the writing
is clear and concise, it would benefit from an editor with a more
scrupulous eye. There are a few typographical and grammatical errors
that conspire to undermine the author's authority. For example, I got
extremely tired of repeatedly reading the phrase the take away.
Hopefully Cody will keep publishing new editions, so don't let this stop