CJCoding With Joseph
← Back to Question List
JavaScript Code Walkthrough #7

Short-Circuit with OR

mediumOperators

📄 Code

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

🎯 Your Answer