Awesome
Understanding ECMAScript 6
by Nicholas C. Zakas
ECMAScript 6 represents the biggest change to the core of JavaScript in the history of the language. Not only does the sixth edition add new object types, but also new syntax and exciting new capabilities. The result of years of study and debate, ECMAScript 6 reached feature complete status in 2014. While it will take a bit of time before all JavaScript environments support ECMAScript 6, it's still useful to understand what's coming and which features are available already.
This book is a guide for the transition between ECMAScript 5 and 6. It is not specific to any JavaScript environment, so it is equally useful to web developers as it is Node.js developers.
What you'll learn:
- All of the changes to the language since ECMAScript 5
- How the new class syntax relates to more familiar JavaScript concepts
- Why iterators and generators are useful
- How arrow functions differ from regular functions
- Additional options for storing data using sets, maps, and more
- The power of inheriting from native types
- Why people are so excited about promises for asynchronous programming
- How modules will change the way you organize code
Where to Read
The published version is available for free and contains the latest "blessed" version. The content may be incomplete but should be correct. New releases are published several times a month.
Anything that is not present in the published version is considered a work-in-progress and may be incomplete or incorrect.
Purchasing an Ebook Copy
You can purchase a copy of this ebook through Leanpub. If you purchase a copy before the ebook is finished, you will receive all updates to the ebook as they are released, up to and including the finished version.
Purchasing a Print Copy
Understanding ECMAScript 6 is being printed by No Starch Press and you can purchase a print copy on Amazon. The print version is professionally copyedited and laid out.
Supporting the Author
If you enjoy this book and would like to support my efforts to create more content, there are a couple ways to do so:
- Leave a tip on PayPal
- Become a patron on Patreon
A small donation is greatly appreciated and will allow me more time to continue my work.
Contributions
Even though this book is being developed in the open, the project works differently than open source software projects. Please read the following thoroughly before attempting to contribute.
Leanpub Markdown
Leanpub uses a specific flavor of Markdown for its source files. Please be sure to read their documentation about what is allowable and what is not.
Note: It may be frustrating, Leanpub does not support all of GitHub-flavored markdown.
Pull requests
Pull requests will be accepted only for correction of content and not for creation of content. Acceptable pull requests:
- Typo fixes
- Grammar/spelling errors
- Alternate descriptions
- Clarifying phrases
Pull requests that will not be considered:
- New sections of content
- New chapters
Basically, you can use pull requests to fix what is already in the repository but not to add what is not in the repository.
Note: An accepted pull request means that your name will be added to a list of contributors. You are still bound by the conditions of the license, meaning that you are not considered an author or owner of the content once it has been merged in. It is considered a donation of your effort to this work.
Issues
Issues can be used both to point out errors as well as to make suggestions. Use issues for:
- Asking questions about the content
- Pointing out an error or problem with the content
- Requesting more information about a section
- Suggesting a new topic for inclusion
Any issue that remains open will be addressed. Issues will be closed either when addressed or if the issue will not be addressed.
Issues should not be used for:
- Asking when a particular section or chapter will be complete
- Anything already marked as "TODO" in the files
These types of issues will simply be marked as invalid and closed without comment.
Copyright and License
Copyright 2014-2016 Nicholas C. Zakas.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Frequently Asked Questions
When will the book be finished?
The book is content-complete as of June 10, 2016.
If I buy a copy now, do I get the finished one?
Yes. When you buy the Leanpub ebook today, you will automatically get all updates for the ebook. You'll be notified of updated versions via email after purchase.
How often is the book published?
Roughly every week or two the changes in GitHub are published to Leanpub.
What is the state of content in GitHub?
Everything in GitHub is a work in progress. Those parts that are known to be correct and fully-formed enough to be valuable are published to Leanpub. That's why there's more content in GitHub than is available on Leanpub, as GitHub contains everything, including content that's not quite ready for the book.
What is the difference between the print version and the Leanpub version?
The topics covered, and the order in which those topics are covered, are exactly the same between the print and Leanpub versions. The only real differences are in some words and phrases that have been altered by the copyeditors either for clarity or to follow No Starch's style guide. These changes are not backported into Leanpub because they happen on PDFs and sometimes opaquely, making it difficult to keep the two versions in sync.
Can I acquire translation rights?
Yes. Please contact No Starch Press for acquiring translation rights.