Update Factory-functions.md

This commit is contained in:
Angelos Chalaris
2018-09-02 22:19:19 +03:00
committed by GitHub
parent d0fb30dc83
commit 0187bd8bf7

View File

@ -1,4 +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.
Factory functions don't require the use of the `new` keyword.