I’m trying to understand some details of the following statement:
constructor
is a pre-defined [[DontEnum]] property of the object pointed to by theprototype
property of a function object and will initially point to the function object itself.
Intuitively, I was trying to rephrase it like this:
Every
function
object has aprototype
property that points to a special object by default. The object has aconstructor
property (a pre-defined [[DontEnum]] property), which points back to thefunction
object.
But I was told this was wrong. Why? Is it only because we can directly set it to null
after creation?