Lesson 96 +15 XP

The JavaScript Reference

The JavaScript Reference

JavaScript has a complete official reference for everything in the language.

What the reference covers

  • Built-in objects: String, Number, Math, Date, Array, Object, JSON, RegExp, Set, Map, Promise, and more.
  • Statements: if, for, switch, try, and all keywords.
  • Operators: every operator and precedence.
  • Functions and classes: syntax, parameters, inheritance.
  • Errors: every error type and message.

MDN Web Docs

The best reference is MDN Web Docs (developer.mozilla.org). It has:

  • Full docs for every object and method.
  • Live examples.
  • Browser compatibility tables.
  • Clear beginner-friendly explanations.

W3Schools reference

W3Schools also offers a complete JavaScript reference with examples for every property, method, and event.

How to use a reference

  1. Look up the object (like Array).
  2. Find the method you need (like map).
  3. Read the syntax and example.
  4. Test it in the console.

TL;DR

  • The JS reference covers objects, statements, operators, classes, and errors.
  • MDN Web Docs is the top official reference.
  • Look up objects, read examples, then test.