Conventions used

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 2myCounter(); // 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 ...

Get Learn ECMAScript - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.