JavaScript: The Language of the Web cover

Web · Ebook

JavaScript: The Language of the Web

by Shriira Press

4.8(1,320)188 pagesPublished 2026

JavaScript is the language of the web — the only one browsers run natively — and, through Node.js, a language for servers and tools too. This free, example-driven book teaches modern JavaScript from the ground up: running code in the browser and Node, the type system and its coercion quirks, control flow, functions and closures, objects and arrays, prototypes and classes, the DOM and events, and the part everyone must master — asynchronous programming with the event loop, promises, and async/await — closing with modern ES features, modules, error handling, and the Node/npm ecosystem. Eleven focused chapters with runnable code and clear diagrams. Learn the most widely used language in software.

Contents

  1. 1Preface
  2. 2Chapter 1 — What JavaScript Is
  3. 3Chapter 2 — Getting Started
  4. 4Chapter 3 — Variables, Types, and Operators
  5. 5Chapter 4 — Control Flow and Loops
  6. 6Chapter 5 — Functions and Closures
  7. 7Chapter 6 — Objects and Arrays
  8. 8Chapter 7 — Prototypes, Classes, and this
  9. 9Chapter 8 — The DOM and Events
  10. 10Chapter 9 — Asynchronous JavaScript
  11. 11Chapter 10 — Modern JavaScript and Modules
  12. 12Chapter 11 — Errors, Node, and Good Practice