Learning ECMAScript 6(Paperback)

Narayan Prusty

  • 出版商: Packt Publishing
  • 出版日期: 2015-08-31
  • 售價: $1,490
  • 貴賓價: 9.5$1,416
  • 語言: 英文
  • 頁數: 181
  • 裝訂: Paperback
  • ISBN: 1785884441
  • ISBN-13: 9781785884443
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

Learn all the new ES6 features and be amongst the most prominent JavaScript developers who can write efficient JS programs as per the latest standards!

About This Book

  • Learn a powerful approach to writing object-oriented JavaScript code using ES6
  • Create and use ES6 modules to learn to write smart, modularized JavaScript code
  • The book will take you step-by-step through a wide array of examples, giving you tips on how to make the best use of the latest ES6 features

Who This Book Is For

If you are a JavaScript developer with basic development, and now want to learn about the latest features in order to develop better client-side programs with JavaScript, then this book is for you.

What You Will Learn

  • Explore the usage of new syntaxes introduced by ES6
  • Use the new prototype-based features introduced by ES6
  • Execute ES6 in an old non-supported ES6 environment
  • Write asynchronous code using promise to facilitate the writing of better asynchronous code that is easier to read and maintain
  • Create reflection objects and implement the ES6 Reflect API
  • Get to know object-oriented programming and create objects using classes
  • Build proxies using the ES6 proxy API and understand its uses
  • Create JavaScript libraries using ES6 modules

In Detail

ECMAScript 6 is the new edition to the ECMAScript language, whose specifications are inherited by JavaScript. ES6 gives a vast makeover to JavaScript by adding new syntaxes and APIs to write complex applications and libraries that are easier to debug and maintain. ES6 aims to keep JavaScript accessible for casual developers, even after adding so many new features.

This book will provide step-by-step instructions on how to apply ES6 features instead of old JavaScript hacks and methods.

The book will start by introducing all the built-in objects of ES6 and how to create ES6 custom Iterators. Next, it will teach you how to write asynchronous code in a synchronous style using ES6.

Moving on, it will teach you how to create reflection objects, use it to expose hidden object properties, and test the security of these objects. Next, the book provides use case scenarios of meta programming by showing you how to create proxies and proxy functions, along with use case scenarios of meta programming by teaching you how to create proxies and proxy functions.

Finally, it explains old modular programming techniques such as IIFE, CommonJS, AMD, and UMD and also compares it with Node.js modules and how ES6 modules can increase the performance of websites when used.

Style and approach

This book is a pragmatic guide that takes you through the ES6 APIs and other features in a conversational and easy-to-follow style. Each topic is explained with examples and use cases.

商品描述(中文翻譯)

學習所有新的 ES6 特性,成為最傑出的 JavaScript 開發者之一,能夠根據最新標準編寫高效的 JS 程式!

關於本書
- 學習使用 ES6 編寫物件導向 JavaScript 代碼的強大方法
- 創建並使用 ES6 模組,學習編寫智能的模組化 JavaScript 代碼
- 本書將通過各種範例逐步引導您,提供如何充分利用最新 ES6 特性的提示

本書適合誰
如果您是一位具備基本開發能力的 JavaScript 開發者,現在想學習最新特性以便開發更好的客戶端程式,那麼這本書適合您。

您將學到什麼
- 探索 ES6 引入的新語法的使用
- 使用 ES6 引入的新原型基礎特性
- 在不支持 ES6 的舊環境中執行 ES6
- 使用 promise 編寫非同步代碼,以便更輕鬆地撰寫可讀性和可維護性更高的非同步代碼
- 創建反射對象並實現 ES6 Reflect API
- 了解物件導向程式設計並使用類別創建對象
- 使用 ES6 代理 API 建立代理並理解其用途
- 使用 ES6 模組創建 JavaScript 函式庫

詳細內容
ECMAScript 6 是 ECMAScript 語言的新版本,其規範被 JavaScript 繼承。ES6 通過添加新的語法和 API,對 JavaScript 進行了大幅改造,使其能夠編寫更複雜的應用程式和函式庫,並且更容易進行除錯和維護。ES6 的目標是使 JavaScript 對於休閒開發者仍然可及,即使在添加了如此多的新特性之後。

本書將提供逐步指導,教您如何應用 ES6 特性,而不是舊的 JavaScript 黑客技術和方法。

本書將從介紹 ES6 的所有內建對象及如何創建 ES6 自定義迭代器開始。接下來,將教您如何使用 ES6 以同步風格編寫非同步代碼。

接下來,將教您如何創建反射對象,使用它來暴露隱藏的對象屬性,並測試這些對象的安全性。然後,本書提供元編程的使用案例,展示如何創建代理和代理函數,並教您如何創建代理和代理函數的元編程使用案例。

最後,解釋舊的模組化編程技術,如 IIFE、CommonJS、AMD 和 UMD,並將其與 Node.js 模組進行比較,說明如何使用 ES6 模組提高網站性能。

風格與方法
本書是一個務實的指南,以對話和易於理解的風格帶您了解 ES6 API 和其他特性。每個主題都用範例和使用案例進行解釋。