This chapter answers questions you may have and gives tips for reading this book.
This book is three books in one:
Exercises play an important part in helping you practice and retain what you have learned.
Several chapters and sections are marked with “(advanced)”. The idea is that you can initially skip them. That is, you can get a quick working knowledge of JavaScript by only reading the basic (non-advanced) content.
As your knowledge evolves, you can later come back to some or all of the advanced content.
The HTML version of this book (online, or ad-free archive in the paid version) has a link at the end of each chapter that enables you to give feedback.
The receipt email for the purchase includes a link. You’ll always be able to download the latest version of the files at that location.
If you opted into emails while buying, you’ll get an email whenever there is new content. To opt in later, you must contact Payhip (see bottom of payhip.com
).
The book’s homepage explains how to do that.
If you bought the print version, you can get a discount for a digital version. The homepage explains how.
Alas, the reverse is not possible: you cannot get a discount for the print version if you bought a digital version.
For example, you may see:
Number.isFinite(num: number): boolean
That is called the type signature of Number.isFinite()
. This notation, especially the static types number
of num
and boolean
of the result, are not real JavaScript. The notation is borrowed from the compile-to-JavaScript language TypeScript (which is mostly just JavaScript plus static typing).
Why is this notation being used? It helps give you a quick idea of how a function works. The notation is explained in detail in “Tackling TypeScript”, but is usually relatively intuitive.
Reading instructions
Explains how to best read the content.
External content
Points to additional, external, content.
Tip
Gives a tip related to the current content.
Question
Asks and answers a question pertinent to the current content (think FAQ).
Warning
Warns about pitfalls, etc.
Details
Provides additional details, complementing the current content. It is similar to a footnote.
Exercise
Mentions the path of a test-driven exercise that you can do at that point.