options object

A plain JavaScript object passed to a function to set named options, such as { passive: true } or { childList: true }.

In more detail

Named options make calls readable and easy to extend. Many web APIs, including addEventListener, observe and fetch, accept one as their last argument.

Related terms

Taught in

References