//Return first true value, then stop evaluating other expressions var foo = false || 0 || '' || 4 || 'foo' || true; console.log(foo); //logs 4, because its the first true value in the experssion