Learn ECMAScript - Second Edition: Discover the latest ECMAScript features in order to write cleaner code and learn the fundamentals of JavaScript
Mehul Mohan, Narayan Prusty
- 出版商: Packt Publishing
- 出版日期: 2018-02-26
- 售價: $1,810
- 貴賓價: 9.5 折 $1,720
- 語言: 英文
- 頁數: 298
- 裝訂: Paperback
- ISBN: 1788620062
- ISBN-13: 9781788620062
-
相關分類:
JavaScript
海外代購書籍(需單獨結帳)
相關主題
商品描述
Get up and running with all the new features of ECMAScript and explore new ways of coding with JavaScript.
Key Features
- Grasp the latest features of ECMAScript and the best way to use it in production code
- Learn newly added native APIs to JS Engine and perform tasks efficiently with a cleaner code base
- Understand the more complex sides of JavaScript such as the inheritance model, low-level memory management, multithreaded environments, and web workers
Book Description
Learn ECMAScript explores implementation of the latest ECMAScript features to add to your developer toolbox, helping you to progress to an advanced level. Learn to add 1 to a variable andsafely access shared memory data within multiple threads to avoid race conditions.
You'll start the book by building on your existing knowledge of JavaScript, covering performing arithmetic operations, using arrow functions and dealing with closures. Next, you will grasp the most commonly used ECMAScript skills such as reflection, proxies, and classes. Furthermore, you'll learn modularizing the JS code base, implementing JS on the web and how the modern HTML5 + JS APIs provide power to developers on the web. Finally, you will learn the deeper parts of the language, which include making JavaScript multithreaded with dedicated and shared web workers, memory management, shared memory, and atomics. It doesn't end here; this book is 100% compatible with ES.Next.
By the end of this book, you'll have fully mastered all the features of ECMAScript!
What you will learn
- Implement methods associated with objects as per the latest ECMAScript specification
- Make use of the latest features of ECMAScript
- Make use of many new APIs in HTML5 and modern JavaScript implementation
- Use SharedArrayBuffers for superfast concurrent and parallel programming
- Perform asynchronous programming with JavaScript
- Implement the best ways and practices to perform modular programming in JavaScript
Who This Book Is For
This book is for web developers who have some basic programming knowledge and want to learn to write cleaner code with the power of ECMAScript.
Table of Contents
- Getting Started with ECMAScript
- Knowing Your Library
- Using Iterators
- Asynchronous Programming
- Modular Programming
- Implementing the Reflect API
- Proxies
- Classes
- JavaScript on the Web
- Storage APIs in JavaScript
- Web and Service Workers
- Shared Memory and Atomics
商品描述(中文翻譯)
起步並運用 ECMAScript 的所有新功能,探索使用 JavaScript 的新方法。
主要特點
- 掌握 ECMAScript 的最新功能及其在生產代碼中的最佳使用方式
- 學習新添加的原生 API 以提高 JS 引擎的效率,並以更乾淨的代碼基礎執行任務
- 理解 JavaScript 更複雜的方面,例如繼承模型、低階記憶體管理、多執行緒環境和網頁工作者
書籍描述
《學習 ECMAScript》探討最新 ECMAScript 功能的實現,幫助您將其添加到開發者工具箱中,助您進步到更高的水平。學習如何將 1 加到變數上,並安全地在多個執行緒中訪問共享記憶體數據,以避免競爭條件。
您將從擴展現有的 JavaScript 知識開始,涵蓋算術運算、使用箭頭函數和處理閉包。接下來,您將掌握最常用的 ECMAScript 技能,例如反射、代理和類別。此外,您將學習如何模組化 JS 代碼基礎,實現 JS 在網頁上的應用,以及現代 HTML5 + JS API 如何為網頁開發者提供強大功能。最後,您將學習語言的更深層部分,包括如何使用專用和共享的網頁工作者使 JavaScript 支援多執行緒、記憶體管理、共享記憶體和原子操作。本書不僅如此,還與 ES.Next 100% 兼容。
在本書結束時,您將完全掌握 ECMAScript 的所有功能!
您將學習到的內容
- 根據最新的 ECMAScript 規範實現與物件相關的方法
- 利用 ECMAScript 的最新功能
- 使用 HTML5 和現代 JavaScript 實現中的許多新 API
- 使用 SharedArrayBuffers 進行超快速的並發和並行編程
- 使用 JavaScript 進行非同步編程
- 實現最佳方式和實踐以進行 JavaScript 的模組化編程
本書適合對象
本書適合具有基本編程知識的網頁開發者,想要學習如何利用 ECMAScript 的力量編寫更乾淨的代碼。
目錄
1. 開始使用 ECMAScript
2. 瞭解您的庫
3. 使用迭代器
4. 非同步編程
5. 模組化編程
6. 實現 Reflect API
7. 代理
8. 類別
9. 網頁上的 JavaScript
10. JavaScript 中的儲存 API
11. 網頁和服務工作者
12. 共享記憶體和原子操作