FrontendInterviews.dev

610. Nullish Coalescing vs OR

Easy•

Predict the output.

const value = 0
console.log(value || 10)
console.log(value ?? 10)

What is printed in order?

Select an option and submit your answer.
Next Problem