Conventions
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; "lower" > CASE_MATTERS; "upper"
Any command-line input or output is written as follows:
alias jsc='/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc'
New terms and important words are introduced in a bold-type font. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: "If the user clicks on Cancel, the preventDefault()
method is called".
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.