← Back to Question List
JavaScript Code Walkthrough #7
Short-Circuit with OR
📄 Code
Read carefully — what does this print?1const a = 0;2const b = a || "default";3console.log(b);
1const a = 0;2const b = a || "default";3console.log(b);