Skip to content

Commit 9e649fb

Browse files
author
digital-bw
authored
Update task.md
Missing '()' invoking a constructor.
1 parent 2b022ee commit 9e649fb

File tree

1 file changed

+2
-2
lines changed
  • 1-js/04-object-basics/06-constructor-new/1-two-functions-one-object

1 file changed

+2
-2
lines changed

1-js/04-object-basics/06-constructor-new/1-two-functions-one-object/task.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Is it possible to create functions `A` and `B` so that `new A() == new B()`?
1010
function A() { ... }
1111
function B() { ... }
1212

13-
let a = new A;
14-
let b = new B;
13+
let a = new A();
14+
let b = new B();
1515

1616
alert( a == b ); // true
1717
```

0 commit comments

Comments
 (0)