<b>What will be the output for the following code?</b>

<span style="font-weight: 400;">const obj1 = { name: "John" };</span>

<span style="font-weight: 400;">const obj2 = { age: 30 };</span>

<span style="font-weight: 400;">const merged = { ...obj1, ...obj2 };</span>

<span style="font-weight: 400;">console.log(merged); </span>