In Chrome's JavaScript console:
function placeOrder() {
return 1;
};
undefined
console.log(placeOrder.prototype);
placeOrder {}
But In IE 11, the default prototype property seems to be an empty object. I wonder what is the object "placeOrder { }" in Chrome? I also tested it in Firefox. In Firefox, the prototype property is "placeOrder { }" too.
In IE 11 console:
function placeOrder() {
return 1;
};
undefined
console.log(placeOrder.prototype);
undefined
[object Object]{}
Thanks.