4 ms·
Because "x = x || y;" would always perform the assignment due to precedence. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Lo
by tardismechanic 5y ago
Because "x = x || y;" would always perform the assignment due to precedence. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_OR_assignment#short-circuit_evaluation https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...