Answers for "concat object"

0

concat object

const obj1 = { food: 'pizza', car: 'ford' };
const obj2 = { animal: 'dog' };

const obj3 = { ...obj1, ...obj2 };
console.log(obj3);
Posted by: Guest on March-04-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language