Notes
&& is same as and.
document.write(true && true);
Output: true
document.write(true && false);
Output: false
document.write(false && true);
Output: false
document.write(false && false);
Output: false
|| is same as or.
document.write(true || true);
Output: true
document.write(true || false);
Output: true
document.write(false || true);
Output: true
document.write(false || false);
Output: false
! is same as not (opposite)
var x = true;
document.write(!x);
Output: false