JavaScript
Property value shorthand

by Benny Neugebauer

const email = "name@mail.com";
const password = "secret";
const credentials = {
  email: email,
  password: password
};

const email = "name@mail.com";
const password = "secret";
const credentials = {
  email,
  password
};