Skip to main content Accessibility Feedback

Reference Guide

A quick reference for commonly used JavaScript methods and browser APIs.

Unless otherwise noted, these work in all modern browsers, and IE9+. You can extend support back further with polyfills.

Worried about the economy? I am too! If you’re in a bad spot right now, you can take 50% off my ebooks, video courses, and the Vanilla JS Academy.

Selectors

Loops

Classes

Styles

Attributes

Event Listeners

Strings

Numbers

Arrays

Objects

HTML and Text

DOM Injection

Traversing the DOM

The Viewport

Distances

Browser Storage

JSON

Ajax and APIs

JavaScript-Free Components