Add Factory functions
This commit is contained in:
4
glossary/Factory-functions.md
Normal file
4
glossary/Factory-functions.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### 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 use the `new` keyword.
|
||||||
Reference in New Issue
Block a user