๐นconstructor
JS โฉ value โฉ function โฉ constructor
a function that supports the [[Construct]] internal method, that is, a constructable function.
function vs. constructor
constructor๏ผ
object that supports the [[Construct]] internal method.
every constructor must support [[Call]] (that is, every constructor is a function)
๐ ES2023 โฉ Additional Essential Internal Methods of Function Objects
๐ compare๏ผ
the constructor method of a class.
the constructor property present on all objects.
Last updated
Was this helpful?