There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Look carefully, we are not executing counter() again and again."
A block of code is set as follows:
let myCounter = counter(); // returns a function (with count = 1)
myCounter(); // now returns 2
myCounter(); // now returns 3
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
var ob1 = {
prop1 : 1,
prop2 : {
prop2_1 : 2
}
};
Object.freeze( ob1 );
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "However, you can specify the distance to move, that is history.go(5); is equivalent to the user hitting the forward button in the browser five times."
Warnings or important notes appear like this.
Tips and tricks appear like this.