Update task.md

Missing '()' invoking a constructor.
This commit is contained in:
digital-bw 2022-09-24 01:25:17 +06:00 committed by GitHub
parent 2b022eeabb
commit 9e649fb911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
```