Last updated 2 years ago
Was this helpful?
⟩ ⟩ ⟩ constructor
a function that supports the , that is, a function.
function vs. constructor
function:
object that supports the internal method.
constructor:
every constructor must support (that is, every constructor is a function)
👉 ES2023 ⟩
👉 compare:
the method of a class.
the property present on all objects.
a constructor is a function.
callable vs. constructable.
ES2023 ⟩
what a constructor actually is in plain JS ❓
(what does the part "supports the [[Construct]] internal method" really mean?)