Skip to content

Glossary: JavaScript Basics

Method

Also written: methods

A function that belongs to a value and is called with a dot, such as `name.trim()` or `cart.push(x)`.

Where the book teaches it

Related terms

FunctionProperty