166
rated 0 times
[
173]
[
7]
/ answers: 1 / hits: 19289
/ 13 Years ago, thu, may 5, 2011, 12:00:00
Can I count on Javascript failing immediately when one condition in an expression results to false?
f = {'a':'b'};
if (f.a !== undefined || f.a === 'b') {
// Is this OK to use, because the second condition will never be evaluated?
}
More From » javascript