Eloquent JavaScript

eloquentjavascript.net

Visit Website

Marijn Haverbeke's free book on JavaScript and programming, readable online with a built-in code sandbox so you can run and edit every example on the page.

Eloquent JavaScript is a book on JavaScript and programming by Marijn Haverbeke, available to read free online. The current edition is the fourth, from 2024. It is organised into three parts: the language itself, programming in the browser, and programming with Node.js.

The online version has a built-in sandbox, so you can edit and run each code example on the page. The text is licensed for non-commercial sharing and the code under MIT, and a paperback is available if you prefer print. It suits readers who want to understand how programming works, not only copy snippets.

Why it is useful

One of the best free introductions to programming itself, not just to JavaScript. It covers the language, the browser and Node.js, and finishes with real projects. The book is openly licensed, so there is nothing to sign up for or pay.

Other learning resources you might not have heard of.

Browse all Learning Resources →