$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #266

What goes in the blank?

// copy own enumerable props onto target
Object.____(target, source);

Answer: assign (also accepted: assign, assign())

Object.assign mutates the target — spread syntax builds a new object instead.
Play Problem Solving ▸