Actieve werkgever
// What does this code return? var Foo = function (a) { this.bar = () => { return a; } var baz = function () { return a; }; }; Foo.prototype = { biz: () => { return this.bar(); } }; var f = new Foo(7); f.bar(); //=> f.baz(); //=> f.biz(); //=>
Anoniem
f.bar(); //7 f.baz(); //baz is not defined error f.biz(); //undefined as this refers to window because of arrow function.