From fb4fc33a2234445808100ddc9f5e4dcec8b3d24c Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Tue, 15 Jun 2021 09:23:16 +0300 Subject: [PATCH] minor fixes --- 1-js/04-object-basics/06-constructor-new/article.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/1-js/04-object-basics/06-constructor-new/article.md b/1-js/04-object-basics/06-constructor-new/article.md index 5c2bb9d7..184b30f8 100644 --- a/1-js/04-object-basics/06-constructor-new/article.md +++ b/1-js/04-object-basics/06-constructor-new/article.md @@ -70,7 +70,8 @@ Let's note once again -- technically, any function (except arrow functions, as t If we have many lines of code all about creation of a single complex object, we can wrap them in an immediately called constructor function, like this: ```js -let user = new function() { +// create a function and immediately call it with new +let user = new function() { this.name = "John"; this.isAdmin = false;