Update task.md
Missing '()' invoking a constructor.
This commit is contained in:
parent
2b022eeabb
commit
9e649fb911
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@ Is it possible to create functions `A` and `B` so that `new A() == new B()`?
|
||||||
function A() { ... }
|
function A() { ... }
|
||||||
function B() { ... }
|
function B() { ... }
|
||||||
|
|
||||||
let a = new A;
|
let a = new A();
|
||||||
let b = new B;
|
let b = new B();
|
||||||
|
|
||||||
alert( a == b ); // true
|
alert( a == b ); // true
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue