Loading lessons...
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
- Look up the object (like Array).
- Find the method you need (like map).
- Read the syntax and example.
- 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.