JavaScript - Object Constructors
Practicing object constructors!
JavaScript
function User(email, password) {
this.email = email;
this.password = password;
}
const user = new User('[email protected]', 'supersecret')
const anotherUser = new User('[email protected]', 'notsosecret')
/* New tells JavaScript to create a new object according to the constructor and returning the new object */