Himanshu SharmaSoftware engineer
Let’s talk

Beginner to intermediate · 58 lessons

JavaScript for beginners

A free JavaScript course for beginners who know basic HTML. Short lessons with live editors cover variables, functions, arrays, objects, the DOM, events, async code and modules, ending with a small app you build yourself.

Syllabus

Getting started

  1. What JavaScript is and where it runs9 min
  2. Running JavaScript: script tags and the console11 min
  3. Variables: let, const and var12 min
  4. Data types12 min
  5. Numbers and the Math object13 min
  6. Strings13 min
  7. Template literals9 min
  8. Operators13 min
  9. Type conversion and equality13 min
  10. Comments and code style10 min

Control flow

  1. if, else and else if12 min
  2. Truthy and falsy values10 min
  3. The switch statement10 min
  4. Ternary, &&, || and ??12 min
  5. for loops12 min
  6. while and do...while loops10 min
  7. break, continue and labels10 min
  8. Loop practice: patterns and totals15 min

Functions

  1. Functions10 min
  2. Parameters, defaults and return values11 min
  3. Arrow functions10 min
  4. Scope11 min
  5. Hoisting9 min
  6. Closures11 min
  7. Callbacks and functions as values11 min
  8. Rest and spread10 min
  9. Recursion12 min

Arrays and objects

  1. Arrays14 min
  2. Adding, removing and searching arrays15 min
  3. map, filter and reduce16 min
  4. Sorting arrays13 min
  5. Objects15 min
  6. Destructuring13 min
  7. Methods and this15 min
  8. JSON13 min
  9. Set and Map14 min
  10. Dates and time15 min
  11. Regular expressions17 min

Classes and errors

  1. Classes14 min
  2. Inheritance with extends12 min
  3. Prototypes13 min
  4. Errors, try and catch13 min
  5. Debugging with the browser tools13 min

The DOM and events

  1. The DOM12 min
  2. Selecting elements13 min
  3. Changing content, attributes and styles14 min
  4. Creating and removing elements14 min
  5. Events14 min
  6. Event bubbling and delegation13 min
  7. Forms and validation15 min
  8. localStorage13 min

Asynchronous JavaScript

  1. Timers and the event loop14 min
  2. Promises15 min
  3. async and await13 min
  4. Fetching data with fetch15 min

Modern JavaScript and project

  1. Modules: import and export13 min
  2. Optional chaining and other modern syntax12 min
  3. Project: a to-do app25 min