Question #70

Author: admin
tags: JavaScript  
const obj1 = { x: 1,  y: 1 };
const obj2 = { x: 2,  y: 2 };

const target = { ...obj1, ...obj2 };

obj1.x = 3;
obj1.y = 3;
obj2.x = 4;
obj2.y = 4;

console.log(target);
What will the console output be?
{ x: 1, y: 1 }
{ x: 2, y: 2 }
{ x: 3, y: 3 }
{ x: 4, y: 4 }
Rate the difficulty of the question:
easyhard