Frontend
Interviews
.dev
Problems
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?
1
undefined
TypeError
null
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer