var a = 3;
var b = 2;
var c = "someString";
var d = 0;

document.write("Output 1 : " + (a || b));
document.write("<br/>");
document.write("Output 2 : " + (a && c));
document.write("<br/>");
document.write("Output 3 : " + (a && d && c));

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.