A new object is created. It inherits from Person.prototype. Constructor Person is executed. When executing, the corresponding parameters will be passed in, and the context (this) will be designated as this new instance.
new Person is equivalent to new Person(), and can only be used without passing any parameters.
When the code new Person(...) is executed:
A new object is created. It inherits from Person.prototype.
Constructor Person is executed. When executing, the corresponding parameters will be passed in, and the context (this) will be designated as this new instance.
Is there any problem? By default, no value is passed when parentheses are not added
And the priorities of adding () and not adding are also different