I am reading operator precedence on this page. It shows "===" has higher precedence than "||" operator. If it is true, then "a === doesThisHappen()" will run first. But why I did not get console.log('This happens!')?
var a;
a = 1;
function doesThisHappen() {
console.log('This happens!');
return 0;
}
if (a || a === doesThisHappen()) {
console.log('Something is there.');
}