When you call new , you call the function as a constructor. This tells JavaScript to create a βnewβ Person object and then call a function with this new object set to this .
In your second example, you usually call a function and manually set this to a new Object (or just {} ). Thus, the function is launched and sets the properties of the this object that you sent. (Try just doing Person( "Bob", 55 ); then console.log(window.name) )
In the first example, bob is a Person object; but in the 2nd, it is Object .
So no, one is not short for the other. They are different.
Rocket hazmat
source share