Frontend
Interviews
.dev
Problems
692. Logical OR Assignment
Easy
•
...
Predict the output.
let
x
=
0
x
||=
5
console
.
log
(
x
)
What is printed in the console?
0
5
undefined
TypeError
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer