What’s in This Book?
The rest of this book is organized as follows.
Before we dig into the newer features of JavaScript, we’ll quickly visit some old problem areas in Chapter 1, JavaScript Gotchas. You’ll learn about things to avoid and the safe alternatives to some nefarious features.
Chapter 2, Variables and Constants will encourage you to replace var with let or const and why you should prefer const where possible.
JavaScript has always had support for flexible parameters, but it was not intuitive and was also error prone. Chapter 3, Working with Function Arguments will show how the newer features of JavaScript make working with parameters safe, expressive, and pleasant.
The enhanced for loop of modern JavaScript is the antidote for ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access