Does JavaScript have undefined behaviour (similar to C) or is it completely well-defined by the spec, and deterministic?
Note that I am discarding implementation bugs and spec divergences. I am also discarding stuff like Math.random()
and Date.now()
.
Is there a piece of JavaScript code for which the behaviour is not completely determined by the JavaScript specifications, and, as such, has "undefined behaviour"?
See Question&Answers more detail:os