js if vs || code example
Example 1: javascript and
var hungry=true;
var slow=true;
var anxious=true;
//&& means and
if(hungry && slow && anxious){
var cause="weed";
}
Example 2: or statment javscript
if (x === 5 || x === 8)
console.log("x is eaqual to 5 OR 8")