Edit It: Does omitting the return keyword cause an object to inherit its constructor's prototype?
This code shows that omitting the return keyword makes an object inherit its constructor's prototype property.
See it on StackBlitzThis code shows that omitting the return keyword makes an object inherit its constructor's prototype property.
See it on StackBlitz