Conventions
In this book, you will find a number of text styles 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 can include other files through the use of the import
keyword."
A block of code is set as follows:
function mul(a, b, log) { var ans = a * b; if (log === true) { console.log ([a, b, ans]); } }
When we wish reference a portion of code in the following text, the code is marked with a commented number, like so:
function mul(a, b, log) { var ans = a * b; if (log === true) { // [1] console.log ([a, b, ans]); } }
We use the strict equality operator in [1] to avoid type coercion.
Any command-line input or output is written as follows:
$ gulp copy && gulp init
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Right-click on An Element and then on Inspect Element."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.