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

Logical Operators Return Values

JavaScript code walkthrough · Question 35
hardOperators

Code

Read carefully. What does this print?
1let a = 0;
2let b = "hello";
3let c = null;
4console.log(a || b);
5console.log(b && "world");
6console.log(c || a || "default");
7console.log(b && c);

Your answer