JavaScript powers nearly every website on the internet. This book teaches you to write it, starting from zero.
JavaScript for Beginners is the first book in the Ink & Logic series. It teaches the language as it is written today, skipping the outdated quirks found in older guides and going straight to the habits working developers use. You don't need any coding experience. If you can use a web browser, you can start.
You learn by building. Each chapter introduces a new idea, explains why it works, and has you write real code right away. Small programs come first, then interactive web pages that respond to clicks, typing and changing data.
Inside you will learn how to:
- Set up a simple, free coding environment
- Store and change data with variables, strings and numbers
- Make decisions with if statements and repeat work with loops
- Write and reuse functions, including arrow functions
- Organise data with arrays and objects
- Select and change parts of a web page with the DOM
- Respond to clicks, key presses and form input with events
- Find and fix bugs using the browser's developer tools
Each chapter ends with short exercises and solutions, and the book finishes with small complete projects you can show off, such as an interactive quiz and a to-do list app.
The Ink & Logic series is written for people who want clear explanations, modern practice and no filler. When you are ready for more, Advanced JavaScript picks up exactly where this book leaves off.
Write your first line of JavaScript today.