Whether you are a complete beginner or you have some knowledge in JavaScript, this book will guide you from the basics of the language to all the new features introduced until 2019. At the end of each chapter test your knowledge with quizzes.After reading this book, Let Const, generators, promises and async won't be a problem anymore.If you want to experience something new, this book also includes an introduction to the basics of TypeScript, a must-know for any JavaScript develop in 2019.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A beginner-friendly, quiz-driven tour of JavaScript from `var` to `async`/`await`, with a short TypeScript primer for developers who want to modernize their workflow. Best for self-taught learners and working developers who need a structured refresher on ES6+ features.
【Book Arc】
- **Opening (~0%–10%)**: Environment setup, editor choices, and a gentle introduction to variables, data types, and functions—designed to bring absolute beginners up to speed.
- **Early (~10%–30%)**: Core language fundamentals: `var`/`let`/`const`, the temporal dead zone, arrow functions, default arguments, template literals, and string methods.
- **Middle (~30%–55%)**: Destructuring, iterables and looping (`for...of` vs `for...in`), array improvements, and deeper dives into scope and the `this` keyword with `.bind`, `.call`, and `.apply`.
- **Late (~55%–85%)**: Advanced ES2015+ features including generators, promises, async/await, and newer additions like `Object.fromEntries()` and optional catch binding.
- **Ending (~85%–100%)**: A dedicated TypeScript introduction covering basic types, interfaces, classes, and union/intersection types, followed by quiz solutions.
【Key Takeaways】
- **`const` by default, `let` when reassignment is needed** (Early): The author argues for making `const` your default choice so accidental reassignments surface as errors rather than silent bugs.
- **Arrow functions are anonymous and lexically bind `this`** (Early): They simplify callbacks but should be avoided when you need a dynamic `this` or a named function reference.
- **Objects are copied by reference, primitives by value** (Early): This distinction explains why modifying a copied object affects the original—a common source of bugs.
- **`this` depends on how a function is called, not where it is defined** (Middle): Global calls bind `this` to `Window` (or `undefined` in strict mode); `.bind()`, `.call()`, and `.apply()` let you set it explicitly.
- **`let` and `const` are block-scoped; `var` is not** (Middle): Variables declared with `var` leak outside blocks, which is why modern code prefers `let`/`const`.
- **`typeof null` returns `"object"`** (Middle): A historical bug from JavaScript's first implementation—worth memorizing to avoid confusion.
- **Destructuring and template literals reduce boilerplate** (Middle): They make extracting values from objects/arrays and building strings more concise and readable.
- **TypeScript is presented as a must-know companion** (Late): The final section introduces basic types, interfaces, and classes as a bridge from JavaScript to typed development.
【Reading Tips】
- **Skim the environment setup** if you already have an editor and know Chrome DevTools—the author explicitly says you can skip it.
- **Deep-read the `this` keyword and scope chapters** (Middle): These are the hardest conceptual hurdles and the source of most beginner confusion.
- **Do the end-of-chapter quizzes**: They are the book's main retention mechanism and reinforce each feature before you move on.
- **Treat the TypeScript section as a primer, not a deep dive**: It covers basics only; pair it with a dedicated TypeScript resource if you plan to adopt it seriously.
- **Use the GitHub link mentioned in the introduction** for updated core chapters as ECMAScript evolves.
【Coverage Limits】
This guide is based on stratified excerpts covering roughly the first half of the book in detail; the generators, promises, async/await, and TypeScript chapters are referenced by title and table of contents but their internal content is not deeply represented in the excerpts.
Excerpt 1
Chapter 8: Array improvements Array.from() Array.of() Array.find() Array.findIndex() Array.some() & Array.every() End of Chapter 8 Quiz Chapter 9: Spread ope...
ue what the best practice is when it comes to let and const. H ere is my take: se const all the time unless you know in advance that you will need to reassig...
r , therefore when we modified car , secondCar also changed. If we compare the two objects, we can see something interesting: console . log (car == secondCar...
n + 1 ) ; //c) let func = arr . map (n ~> n + 1 ) ; a b c 2.2 What is the correct output of the following code? const person = { age : 10 , grow : () => { th...
years old ${ artist . song ? `and wrote the song ${ artist . song }` : '' } </p> </div> ` // <div> // <p> Bon Jovi is 56 years old // </p> // </div> const ar...
" , last : "Montalesi" } var first = person . first ; var last = person . last ; In ES6 we can instead do it as following: const person = { first
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Complete Guide to Modern JavaScript (Alberto Montalesi)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share to WeChat Moments
Complete Guide to Modern JavaScript (Alberto Montalesi)(Z-Library)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Complete Guide to Modern JavaScript (Alberto Montalesi)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
这本书面向从零起步或已有一些基础的 JavaScript 学习者,目标是把语言的基础知识一路讲到 2019 年之前引入的新特性。作者在简介中明确说,读完之后 let、const、生成器、promise 和 async 都不再是难题,每章末尾还配有测验,用来检验掌握程度。从正文摘录能看出,全书在讲清概念的同时很注重实际写法与容易踩的坑。
读者可以抓住的第一条线索是变量声明。摘录里专门讨论了 let 与 const 的最佳实践,作者的建议是除非事先知道需要重新赋值,否则一直用 const;如果后来确实要改,再作调整。书中还对比了 var 与 let 的行为差异:在声明之前访问 let 变量会抛出 ReferenceError,而 var 声明的变量在同样位置得到的是 undefined,这正说明理解声明与初始化的时序很关键。
第二条线索是对象与引用。摘录用一个修改汽车颜色的例子说明,函数参数 car 只是指向对象 myCar 的引用,因此在函数内部改动属性会反映到原对象上。与之相关的是 ES6 的解构写法,书中展示了如何从 person 对象中直接取出 first 和 last,替代过去逐条赋值的做法。
第三条线索是函数参...
Digital LibraryAI Assistant
Hi — I can help you pick a book. Tell me a topic, language, or level, e.g. “a light English read”. If that's too broad, I'll ask one follow-up.
Loading comments...
Reply to Comment
Edit Comment