Beginner · 4h 50m · lessons

JavaScript Basics

The language of the web, one friendly step at a time. Variables, functions, and live pages.

What you'll learn

  • Explain what JavaScript is and where it runs — in the browser and in Node
  • Declare variables the right way with let and const, and name JavaScript's core types
  • Build strings cleanly with template literals and work with text confidently
  • Write reusable functions, including modern arrow functions
  • Store lists in arrays and transform them with map, filter, and forEach
  • Model real-world things with objects and read their properties
  • Make decisions with if/else and repeat work with loops
  • Change a live web page through the DOM, react to clicks with events, and fetch JSON data from the internet
  • Write modern JavaScript with destructuring, spread, modules, and async/await
  • Handle errors with try/catch, store data in localStorage, and schedule work with timers

Syllabus