constructor() property returns a reference to the function that created the instance's prototype.
constructor() property returns the constructor function for an object.
constructor() property is created by default on the prototype property of every constructor function and is inherited by all objects created by that constructor.
Every constructor has a prototype property, which will become the instance's [[Prototype]] when called via the new operator.
There is nothing protecting the constructor property from being re-assigned or shadowed, so using it to detect the type of a variable should usually be avoided in favour of less fragile ways like instanceof and Symbol.toStringTag for objects, or typeof for primitives.
The return value is a reference to the function, not the name of the function ↴
Array constructor property returns function Array() { [native code] }
Number constructor property returns function Number() { [native code] }
String constructor property returns function String() { [native code] }
Boolean constructor property returns function Boolean() { [native code] }
Object constructor property returns function Object() { [native code] }
Function constructor property returns function Function() { [native code] }
Date constructor property returns function Date() { [native code] }
Set constructor property returns function Set() { [native code] }
Map constructor property returns function Map() { [native code] }
myValue.constructor