FrontendInterviews.dev

655. Object Spread with null and undefined

Easy•

Predict the output.

const obj = { ...null, ...undefined, a: 1 }
console.log(obj.a)

What is printed in the console?

Select an option and submit your answer.
Next Problem