I am trying to shorten the following code:
var a = 0, b = 0;
function() {
return a === 0 && b === 0;
}
So, I thought something like the following:
var a = 0, b = 0;
function() {
return a === b === 0;
}
At first, I thought that such a syntax would cause an error, but apparently it returns . Why returns ? false a === b === 0 false
source
share