Learn JavaScript from Scratch

Learn the language of the web: variables, conditions, loops, functions, arrays, objects, the DOM, events, promises and fetch. Every lesson has runnable examples.

9 lessonsBeginner to IntermediateFreeLive code examples

Start lesson 1 →

What you will learn

  • Write programs with core JavaScript
  • Change web pages with the DOM and events
  • Work with arrays, objects and JSON
  • Fetch data from APIs with async and await

Course syllabus

  1. Introduction to JavaScriptLearn what JavaScript is, where it runs, how to add it to a web page and how to use console.log…
  2. Variables and Data TypesLearn JavaScript variables with let and const, data types such as strings, numbers, booleans, null and undefined, and type conversion.
  3. Operators and ConditionalsLearn JavaScript arithmetic, comparison and logical operators, and control decisions with if, else if, else, switch and the ternary operator.
  4. Loops in JavaScriptLearn for, while, do while, for of and for in loops in JavaScript, plus break and continue, with practical examples.
  5. Functions in JavaScriptLearn how to write JavaScript functions: declarations, parameters, return values, arrow functions, default parameters and scope.
  6. Arrays and Array MethodsLearn JavaScript arrays and the most useful methods: push, pop, map, filter, reduce, find, sort and slice, with clear examples.
  7. Objects and JSONUnderstand JavaScript objects, properties, methods, destructuring and the spread operator, and how to convert data to and from JSON.
  8. DOM Manipulation and EventsLearn to select and change HTML elements with the DOM, respond to clicks and typing with event listeners and build…
  9. Asynchronous JavaScript: Promises, async/await and FetchUnderstand asynchronous JavaScript with callbacks, Promises and async/await, and fetch data from an API with proper error handling.

Other courses