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
No responses yet.