Files
30-seconds-of-code/glossary/Factory-functions.md
2019-08-13 11:19:29 +03:00

235 B

title, tags
title tags
Factory functions Factory functions

In JavaScript, a factory function is any function, which is not a class or constructor, that returns a new object. Factory functions don't require the use of the new keyword.