CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Short-Circuit with OR

JavaScript code walkthrough · Question 7
mediumOperators

Code

Read carefully. What does this print?
1const a = 0;
2const b = a || "default";
3console.log(b);

Your answer