Skip to content
The second edition of Eloquent JavaScript
JavaScript HTML TeX CSS Makefile Shell
Find file
Failed to load latest commit information.
bin Fix link to zip in solution of exercise 20.4
code Add additional test in code for exercise 4.1
epub Fix a few epub issues
html Mark errata fixed in the 3rd print
img Fix missing + in hex number regexp in chapter 9
nostarch Use a narrower arrow character in No Starch output
pdf Add a book_mobile.pdf build target that builds a smaller, margin-less…
.gitignore Ignore book_mobile files in .gitignore
00_intro.txt Integrate proofreading changes for chapter 0
01_values.txt Integrate proofreading edits for Chapter 1
02_program_structure.txt Change variable name in name prompt example
03_functions.txt Integrate proofreading for Chapter 5
04_data.txt Missing semicolon
05_higher_order.txt Add note about console.log possibly not working as standalone function
06_object.txt Delete unnecessary semicolon
07_elife.txt Rename act method parameter in Chapter 7
08_error.txt Integrate proofreading for Chapter 8
09_regexp.txt Fix missing + in hex number regexp in chapter 9
10_modules.txt Integrate proofreading for Chapter 10
11_language.txt Fix parentheses in Egg example in Chapter 11
12_browser.txt Fix claim that U in URL stands for Universal, add erratum
13_dom.txt Integrate proofreading for Chapter 13
14_event.txt Integrate proofreading for Chapter 14
15_game.txt Integrate proofreading for Chapter 15
16_canvas.txt Fix left/right confusion in Chapter 16
17_http.txt Fix a typo in Chapter 17
18_forms.txt remove 'checked' attribute from file input
19_paint.txt Slightly simplify some code in Chapter 19
20_node.txt Be explicit about converting a chunk to a string in Chapter 20
21_skillsharing.txt Make sure instantiateNode always returns a value in Chapter 21
Makefile Fix link to zip in solution of exercise 20.4 Add note about epub to README
asciidoc_epub.conf Fix broken interactive/book inline macros in asciidoc config
asciidoc_html.conf Use a post-processing pass to add bookmarks
asciidoc_nostarch.conf Fix broken interactive/book inline macros in asciidoc config
asciidoc_pdf.conf Improve epub generation
package.json add jszip dependency

Eloquent JavaScript

These are the sources used to build the second edition of Eloquent JavaScript (

Feedback welcome, in the form of issues and pull requests.


npm install --production
apt-get install asciidoc inkscape
make html

For OSX, you can use port or brew to install the asciidoc package.

To build the PDF file:

apt-get install texlive texlive-xetex texlive-fonts-extra
make book.pdf

To build the ePub book:

make book.epub
Something went wrong with that request. Please try again.