211 entries · 10 categories

JavaScript reference

Language syntax, classes, methods of arrays, strings and objects, promises, the DOM and browser APIs. You run every example with one click and see the new result in the console after you edit it.

211 entries

Syntax and statements

Variables, conditions, loops, functions, classes and operators.

34

Arrays

Methods of the Array object: transforming, filtering, searching and sorting.

35

Strings

Methods of the String object: slicing, replacing, splitting and formatting text.

25

Objects and classes

Object methods, classes, inheritance, getters and prototypes.

17

Numbers and Math

Conversions, rounding, random numbers and math functions.

19

Asynchronous code

Promises, async/await, timers and fetch requests.

13

Built-in objects

Map, Set, JSON, Date, Intl, RegExp and other objects built into the language.

14

DOM and events

Finding and creating elements, events, classes, attributes and content.

27

Browser APIs

Browser storage, URLs, history, the clipboard, observers and animation frames.

15

Comparisons

How similar methods and language constructs differ and when to pick each one.

12