class Foo { bar() { } } let obj = new Foo(); obj.bar; // ^ defined: 2