Home | Mailing List | Blog | Tutorial Videos

The Walking Dead

What is the output of the following console.log?

const a = { something: 1, someOtherThing: 2 };

const deleteSomething = input => {
  delete input.something;
  return input.something;
};

const result = deleteSomething(a);

console.log(result);

Select one: