Add Factory functions

This commit is contained in:
Angelos Chalaris
2018-09-01 12:29:02 +03:00
parent 7804129848
commit 1e6fc09ec2

View 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.