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.
Glossary: JavaScript Beyond the Basics
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.