javascript-tutorial / en.javascript.info

Modern JavaScript Tutorial
https://javascript.info
Other
23.13k stars 3.84k forks source link

Inaccuracy regarding prototype property #3615

Open Alexandre887 opened 8 months ago

smith558 commented 5 months ago

This may need further clarification to include even other cases such as:

const method = { foo() {} }.foo;
const arrowFunction = () => {};
async function asyncFunction() {}

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype