From 9e649fb911fb6a6c5befc27d8eb9793e890f0f71 Mon Sep 17 00:00:00 2001 From: digital-bw <113027504+digital-bw@users.noreply.github.com> Date: Sat, 24 Sep 2022 01:25:17 +0600 Subject: [PATCH] Update task.md Missing '()' invoking a constructor. --- .../06-constructor-new/1-two-functions-one-object/task.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/04-object-basics/06-constructor-new/1-two-functions-one-object/task.md b/1-js/04-object-basics/06-constructor-new/1-two-functions-one-object/task.md index d80113ac..e932a201 100644 --- a/1-js/04-object-basics/06-constructor-new/1-two-functions-one-object/task.md +++ b/1-js/04-object-basics/06-constructor-new/1-two-functions-one-object/task.md @@ -10,8 +10,8 @@ Is it possible to create functions `A` and `B` so that `new A() == new B()`? function A() { ... } function B() { ... } -let a = new A; -let b = new B; +let a = new A(); +let b = new B(); alert( a == b ); // true ```