Programming Books

18 Excellent Free Books to Learn JavaScript

Last Updated on January 21, 2024

JavaScript is possibly one of the easiest language to get up and running with. But to truly master the language requires a firm foundation of its intricacies. This compilation of free books ticks all the boxes.

JavaScript is an interpreted, prototype-based, scripting computer programming language. It came to popular attention as a simple client-side scripting tool, interacting with the user using forms and controlling the web browser, and remains a front-end language for web applications.

JavaScript features dynamic types, it is weakly typed, supports the structured programming syntax from C, uses prototypes instead of classes for inheritance, and copies many names and naming conventions from Java. It also borrows design principles from Scheme and Self, as well as concepts and syntax idioms such as C-style procedural roots.


1. You Don’t Know JS (book series) by Kyle Simpson

Up & Coming JS

This 6 book set gets to grips with the core mechanisms of JavaScript. It’s a widely acclaimed series.

The book series is a firm favorite with beginners and intermediate programmers. The books go into some detail. There’s lots of good material whatever your proficiency in the language.

The content for these books derives heavily from a series of training materials.

Let’s take you through a brief summary of what each book offers.

Up & Going teaches you:

  • Essential programming building blocks, including operators, types, variables, conditionals, loops, and functions.
  • JavaScript’s core mechanisms such as values, function closures, this, and prototypes.
  • Overview of other books in the series, and learn why it’s important to understand all parts of JavaScript.

Scope and Closures dives into trickier parts of the language.

  • Learn about scope, a set of rules to help JavaScript engines locate variables in your code.
  • Go deeper into nested scope, a series of containers for variables and functions.
  • Explore function- and block-based scope, “hoisting”, and the patterns and benefits of scope-based hiding.
  • Discover how to use closures for synchronous and asynchronous tasks, including the creation of JavaScript libraries.

this & Object Prototypes:

  • Explore how the this binding points to objects based on how the function is called.
  • Look into the nature of JS objects and why you’d need to point to them.
  • Learn how developers use the mixin pattern to fake classes in JS.
  • Examine how JS’s prototype mechanism forms links between objects.
  • Learn how to move from class/inheritance design to behavior delegation.
  • Understand how the OLOO (objects-linked-to-other-objects) coding style naturally implements behavior delegation.

Types & Grammar

  • Get acquainted with JavaScript’s seven types: null, undefined, Boolean, number, string, object, and symbol
  • Understand why JavaScript’s unique array, string, and number characteristics may delight or confound you.
  • Learn how natives provide object wrappers around primitive values.
  • Dive into the coercion controversy—and learn why this feature is useful in many cases.
  • Explore various nuances in JavaScript syntax, involving statements, expressions, and other features.

Async & Performance

  • Explore old and new JavaScript methods for handling asynchronous programming.
  • Understand how callbacks let third parties control your program’s execution.
  • Address the “inversion of control” issue with JavaScript Promises.
  • Use generators to express async flow in a sequential, synchronous-looking fashion.
  • Tackle program-level performance with Web Workers, SIMD, and asm.js.
  • Learn valuable resources and techniques for benchmarking and tuning your expressions and statements.

ES6 & Beyond

  • Learn new ES6 syntax that eases the pain points of common programming idioms.
  • Organize code with iterators, generators, modules, and classes.
  • Express async flow control with Promises combined with generators.
  • Use collections to work more efficiently with data in structured ways.
  • Leverage new API helpers, including Array, Object, Math, Number, and String.
  • Extend your program’s capabilities through meta programming.
  • Preview features likely coming to JS beyond ES6.

The 6 books are published under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

The books are hosted at the project’s GitHub repository.


2. Eloquent JavaScript by Marijn Haverbeke

Eloquent JavaScript

Eloquent JavaScript offers readers an illuminating introduction to the JavaScript programming language and programming in general.

Sections cover:

  • 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.
  • Bugs and Error Handling – strict mode, testing, debugging, error propagation, exceptions are explored.
  • 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.
  • The Document Object Model.
  • Regular Expressions – a way to describe patterns in string data. They form a small, separate language that is part of JavaScript and many other languages and tools.
  • Modularity – deals with the process of organizing 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.

The book has been translated into Bulgarian, Portuguese, and Russian.

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

Read the book. And there’s a paperback version to purchase.


3. Practical Modern JavaScript by Nicolás Bevacqua

Practical Modern JavaScriptThis book provides a highly practical look at ES6, without getting lost in the specification or its implementation details. Armed with practical examples, author Nicolás Bevacqua shows you new ways to deal with asynchronous flow control, declare objects or functions, and create proxies or unique sets, among many other features.

This book focuses on two aspects of JavaScript development: modularity and ES6 features. You’ll learn how to tackle application development by following a scale-out approach. As pieces of your codebase grow too big, you can break them up into smaller modules.

Chapters cover:

  • ECMAScript and the Future of JavaScript.
  • ES6 Essentials.
  • Classes, Symbols, and Objects.
  • Iteration and Flow Control.
  • Leveraging ECMAScript Collections.
  • Managing Property Access with Proxies.
  • Built-in Improvements in ES6.
  • JavaScript Modules.
  • Practical Considerations.

To unlock the HTML, readers have to give permission for Pony Foo to use their Twitter account. We urge the author removes this unnecessary hurdle.

The book is published under the Creative Commons Attribution-NonCommercial-ShareAlike license.

Read the book


Next page: Page 2 – JavaScript Enlightenment and more books

Pages in this article:
Page 1 – You Don’t Know JS (book series) and more books
Page 2 – JavaScript Enlightenment and more books
Page 3 – Developing Backbone.js Applications and more books
Page 4 – jQuery Fundamentals and more books
Page 5 – JavaScript Bible and more books
Page 6 – Object-Oriented JavaScript and more books


All books in this series:

Free Programming Books
AdaALGOL-like programming language, extended from Pascal and other languages
AgdaDependently typed functional language based on intuitionistic Type Theory
ArduinoInexpensive, flexible, open source microcontroller platform
AssemblyAs close to writing machine code without writing in pure hexadecimal
AwkVersatile language designed for pattern scanning and processing language
BashShell and command language; popular both as a shell and a scripting language
BASICBeginner’s All-purpose Symbolic Instruction Code
CGeneral-purpose, procedural, portable, high-level language
C++General-purpose, portable, free-form, multi-paradigm language
C#Combines the power and flexibility of C++ with the simplicity of Visual Basic
ClojureDialect of the Lisp programming language
ClojureScriptCompiler for Clojure that targets JavaScript
COBOLCommon Business-Oriented Language
CoffeeScriptTranscompiles into JavaScript inspired by Ruby, Python and Haskell
CoqDependently typed language similar to Agda, Idris, F* and others
CrystalGeneral-purpose, concurrent, multi-paradigm, object-oriented language
CSSCSS (Cascading Style Sheets) specifies a web page’s appearance
DGeneral-purpose systems programming language with a C-like syntax
DartClient-optimized language for fast apps on multiple platforms
DylanMulti-paradigm language supporting functional and object-oriented coding
ECMAScriptBest known as the language embedded in web browsers
EiffelObject-oriented language designed by Bertrand Meyer
ElixirRelatively new functional language running on the Erlang virtual machine
ErlangGeneral-purpose, concurrent, declarative, functional language
F#Uses functional, imperative, and object-oriented programming methods
FactorDynamic stack-based programming language
ForthImperative stack-based programming language
FortranThe first high-level language, using the first compiler
GoCompiled, statically typed programming language
GroovyPowerful, optionally typed and dynamic language
HaskellStandardized, general-purpose, polymorphically, statically typed language
HTMLHyperText Markup Language
IconWide variety of features for processing and presenting symbolic data
JArray programming language based primarily on APL
JavaGeneral-purpose, concurrent, class-based, object-oriented, high-level language
JavaScriptInterpreted, prototype-based, scripting language
JuliaHigh-level, high-performance language for technical computing
KotlinMore modern version of Java
LabVIEWDesigned to enable domain experts to build power systems quickly
LaTeXProfessional document preparation system and document markup language
LispUnique features - excellent to study programming constructs
LogoDialect of Lisp that features interactivity, modularity, extensibility
LuaDesigned as an embeddable scripting language
MarkdownPlain text formatting syntax designed to be easy-to-read and easy-to-write
Objective-CObject-oriented language that adds Smalltalk-style messaging to C
OCamlThe main implementation of the Caml language
PascalImperative and procedural language designed in the late 1960s
PerlHigh-level, general-purpose, interpreted, scripting, dynamic language
PHPPHP has been at the helm of the web for many years
PostScriptInterpreted, stack-based and Turing complete language
PrologA general purpose, declarative, logic programming language
PureScriptSmall strongly, statically typed language compiling to JavaScript
PythonGeneral-purpose, structured, powerful language
QMLHierarchical declarative language for user interface layout - JSON-like syntax
RDe facto standard among statisticians and data analysts
RacketGeneral-purpose, object-oriented, multi-paradigm, functional language
RakuMember of the Perl family of programming languages
RubyGeneral purpose, scripting, structured, flexible, fully object-oriented language
RustIdeal for systems, embedded, and other performance critical code
ScalaModern, object-functional, multi-paradigm, Java-based language
SchemeA general-purpose, functional language descended from Lisp and Algol
ScratchVisual programming language designed for 8-16 year-old children
SQLAccess and manipulate data held in a relational database management system
Standard MLGeneral-purpose functional language characterized as "Lisp with types"
SwiftPowerful and intuitive general-purpose programming language
TclDynamic language based on concepts of Lisp, C, and Unix shells
TeXMarkup and programming language - create professional quality typeset text
TypeScriptStrict syntactical superset of JavaScript adding optional static typing
ValaObject-oriented language, syntactically similar to C#
VHDLHardware description language used in electronic design automation
VimLPowerful scripting language of the Vim editor
XMLRules for defining semantic tags describing structure ad meaning
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
razbone
razbone
4 years ago

sorry 8- Link ????