JavaScript is the language built into every browser on Earth — and this book teaches it to complete beginners. One-time $4.99 — and you keep it forever.
JavaScript Programming: Fundamentals is a plain-English first course in JavaScript for people who have never programmed. No experience needed, no expensive software: the only tools are a text editor and free Node.js. The first nine chapters teach the language itself with Node; Chapters 10 and 11 move the same language onto a real web page — the DOM and events — and the capstone assembles a working bill-splitting web tool, Tip & Split, from pieces tested separately first. Every program printed in this book was run before it went on the page: the Node listings ran under Node, and the three web-page listings were exercised unmodified under a page test harness, so the outputs you see are the outputs the code produces.
Inside (12 chapters, 72 pages, about 11,200 words, illustrated — one teaching diagram per chapter):
- What JavaScript Is — the language of the web: where JavaScript runs (every browser on Earth, and off the page with Node.js), how it differs from Java despite the name, and how its engine runs your code
- First Steps — Values, Variables, and the Console: the only setup you need (a text editor and free Node.js), your first program, and values stored in named boxes — const for fixed, let for changing
- Types and Operators — What Kind of Thing Is It?: the value types and how typeof names them, the famous null quirk, why + glues when a string is near, and why === is the only equality this book uses
- Making Decisions — If, Else, and Switch: grade ladders with if chains (first true branch wins), matching named choices with switch, and the truthy/falsy six
- Loops — Doing It Again Without Typing It Again: for, while, and do...while, running totals, and how infinite loops happen (and how the step inside stops them)
- Functions — Small Machines With Names: declarations, expressions, and arrow functions; arguments in, answers back; default values, hoisting, and scope
- Arrays — One Name, Many Values: indexes counted from 0, map / filter / reduce at working depth, walking with for...of, and a prices toolkit that taxes, selects, and totals
- Objects — Bundling Data With Behavior: properties and methods, what this means, adding properties after the fact, and JSON — the data-only form objects travel in
- Strings and Numbers at Work: trimming, slicing, splitting, template literals that build sentences, formatting money with toFixed, and converting text to numbers without the + gluing trap
- JavaScript on a Page — The DOM: the browser's tree of page objects, finding elements by id, and rewriting what a page says — no reload
- Events — Making Pages Respond: addEventListener and handlers that answer clicks, and a working click counter on a live page
- Capstone — Tip & Split, and Where to Go Next: reading errors like a professional (the three families and the fix-one-thing routine), assembling a working bill-splitting web tool from pieces tested separately in Node, your honest skills checklist, and the next milestones — freeCodeCamp's free JavaScript certification and the OpenEDG JSE entry-level exam
Written in English (English edition). By Cosmo, published by Kaila's World. Instant download after checkout — the PDF is delivered automatically by the Digital Products app to your email. Personal-use license (see our Digital Rights & Licensing Policy). The companion volume, JavaScript Programming: The Advanced Course, picks up where this one stops.