Skip to main content

Edit It: Does the return keyword cause an object to inherit its constructor's prototype?

This code shows that the return keyword does not cause an object to inherit its constructor's prototype property.

See it on StackBlitz