Eloquent JavaScript (2nd edition)



Eloquent JavaScript is a book providing an introduction to the JavaScript programming language and programming in general.

  • Introduction
  • Basic JavaScript: values, variables, and control flow
  • Functions – an introduction to code that a program can go through whenever it wants. They can play the role of pure functions, algorithms, indirections, abstractions, decisions, modules, continuations, data structures, and more
  • Data structures: Objects and Arrays – at the same time as solving a few simple problems, this chapter discusses arrays and objects, and examines some related techniques
  • Error Handling
  • Functional Programming – produces abstraction through clever ways of combining functions
  • Searching – goes through the solution to two problems, discussing some interesting algorithms and techniques along the way
  • Object-oriented Programming
  • Modularity – deals with the process of organising programs
  • Regular Expressions – a language for describing patterns in strings. They form a small, separate language, which is embedded inside JavaScript (and in various other programming languages)
  • Web programming: A crash course – a quick, superficial introduction to the various elements that make the web work, and the way they relate to JavaScript
  • The Document-Object Model
  • Browser Events
  • HTTP requests




Total pages:224
Author:    Marijn Haverbeke


  1. Introduction
  2. (Part 1: Language)Values, Types, and Operators

  3. Program Structure
  4. Functions
  5. Data Structures: Objects and Arrays
  6. Higher-order Functions
  7. The Secret Life of Objects
  8. Project: Electronic Life
  9. Bugs and Error Handling
  10. Regular Expressions
  11. Modules
  12. Project: A Programming Language
  13. (Part 2: Browser)JavaScript and the Browser

  14. The Document Object Model
  15. Handling Events
  16. Project: A Platform Game
  17. Drawing on Canvas
  18. HTTP
  19. Forms and Form Fields
  20. Project: A Paint Program
  21. (Part 3: Node)Node.js

  22. Project: Skill-Sharing Website

Read/ Download

onlineDownload PDF


Licensed under a Creative Commons attribution-noncommercial license. All code in this book may also be considered licensed under an MIT license.

Leave a Reply

Your email address will not be published. Required fields are marked *