From 1e6fc09ec27f98a0c2ef71cc4b47bfbd8ae2d08e Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 1 Sep 2018 12:29:02 +0300 Subject: [PATCH] Add Factory functions --- glossary/Factory-functions.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 glossary/Factory-functions.md diff --git a/glossary/Factory-functions.md b/glossary/Factory-functions.md new file mode 100644 index 000000000..5d217cf86 --- /dev/null +++ b/glossary/Factory-functions.md @@ -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.