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, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We put the script
tags just before the closing body
tag for performance reasons."
A block of code is set as follows:
this.myModule = (function (module) { module.MyClass = function () { //MyClass definition } return module; }(this.myModule || {}));
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
<p> <span>Slider value:</span> <span id="sliderValue"></span> <button id="sliderReset">Reset</button> </p>
Any command-line input or output is written as follows:
npm install -g gulp
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "In the first one, we activate or disable the drop-down menu, whether or not the Foreign radio option is checked."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.