Master Objects in JS ๐จ (Part 3)
Make your Constructors new-Agnostic ๐๏ธ
When you create a constructor such as a User function, you rely on callers to remember to call it with the new operator. Notice how the function assumes that a receiver is a brand-new object:
function User(name...
coderainbow.hashnode.dev4 min read