🔸prototype

function's `prototype` property.

JSvalueobjectfunction ⟩ prototype

circle-check
triangle-exclamation
triangle-exclamation
circle-info

⭐️ every function has a default prototype. (with the only constructor property that points back to the function itself)

if A.prototype is an object, then let a = new A() will set a.__proto__ = A.prototype.

triangle-exclamation

Last updated