alert(0||undefined); //undefined
alert(undefined||0); //0
alert(false||true); //true
alert(true||false); //true
alert(0||1); //1
alert(1||0); //1
alert(2||1); //2
alert(1||2); //1
alert(null||undefined); //undefined
alert(undefined||null); //null