In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "If you want to be sure, you can check the cancellable property of the event object".

A block of code will be set as follows:

var a;
var thisIsAVariable;
var _and_this_too;
var mix12three;

When we wish to draw your attention to an output of a code block, the relevant lines or items will be shown in bold:

> var case_matters = 'lower';
> var CASE_MATTERS = 'upper';
> case_matters;

Any command-line input or output is written as follows:

alias jsc='/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc' ...

Get Object-Oriented JavaScript - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.