function Foo() {
this.bar = 1;
}
Foo.prototype.bar = 2;
const foo = new Foo();
console.log(foo.bar);
Post #1491
7.06K
CHALLENGE
- 👍 5
- 🤔 2