title: Set Default in JavaScript Object?
body: <p>Would this work say a new user registers for the site and I want the default role to be "user"?</p>
  
  <p>I want that when a person signs up, the default role is set to "user", and be able to change it later to, let's say "admin".</p>
  
  <pre><code>  firstName: {
  type: String,
  required: true
  },
  lastName: {
  type: String,
  required: true
  },
  dob: {
  type: Date,
  required: true
  },
  email: {
  type: String,
  required: true
  },
  username: {
  type: String,
  required: true
  },
  password: {
  type: String,
  required: true
  },
  role: {
  type: String,
  default: 
  }
  });
  </code></pre>