I usually use this code to see if the argument of a function is undefined or not
var = (typeof var != "undefined")? var : "othervalue";
but, other uses this boolean operator
var = var || "othervalue";
However, I have seen that if the value of checking and boolean false argument is not done correctly.
// assuming it is false
var = var || "othervalue"; // will be "OTHERVALUE"!!!
I need to know what exactly this operator in this context.