Eloquent JavaScriptthird edition
This is a book about JavaScript, programming, and the wonders of the digital. You can read it online here, or get your own paperback copy of the second edition.
Written by Marijn Haverbeke.
Licensed under a Creative Commons attribution-noncommercial license. All code in this book may also be considered licensed under an MIT license.
Illustrations by various artists: Cover by Wasif Hyder. Octopus in Chapter 2 by Jim Tierney. Pixel art in Chapters 7 and 16 by Antonio Perdomo Pastor. Regular expression diagrams in Chapter 9 generated with regexper.com by Jeff Avallone. Village photograph in Chapter 11 by Fabrice Creuzot. Game concept for Chapter 15 by Thomas Palef.
The third edition was made possible by 325 financial backers, most notably and
. The second edition was supported by 454 backers,
with significant contributions from
,
,
and
.
Contents
- Introduction
-
(Part 1: Language)
Values, Types, and Operators - Program Structure
- Functions
- Data Structures: Objects and Arrays
- Higher-order Functions
- The Secret Life of Objects
- Project: A Robot
- Bugs and Errors
- Regular Expressions
- Modules
- Asynchronous Programming
- Project: A Programming Language
-
(Part 2: Browser)
JavaScript and the Browser - The Document Object Model
- Handling Events
- Project: A Platform Game
- Drawing on Canvas
- HTTP and Forms
- Project: A Pixel Art Editor
-
(Part 3: Node)
Node.js - Project: Skill-Sharing Website
A paper version of Eloquent JavaScript, including an additional chapter, is being brought out by No Starch Press. They also sell an ebook version more polished than the files linked below.