Skip to content

Glossary: JavaScript Beyond the Basics

Factory function

Also written: factory

A function that builds and returns another function, like `makeCounter` or `makeLimiter`. Each returned function carries its own private settings through a closure.

Where the book teaches it

Related terms

Closure