I’m kind of shocked nowadays when I see anyone using the
<script> tags. But I’ve noticed a disturbing trend recently: the user of
- No support for Unicode characters.
- Array initialization with a single number creates an array with the number as its sole item instead of using it as the array length.
splice()method return an object if only one item is removed and an array if more than one item is removed instead of always returning an array.
- Date behavior is platform-dependent instead of platform-independent.
- Boolean objects with a value of false evaluate to false even though all objects should evaluate to true when converted to a Boolean value.
Disclaimer: Any viewpoints and opinions expressed in this article are those of Nicholas C. Zakas and do not, in any way, reflect those of my employer, my colleagues, Wrox Publishing, O'Reilly Publishing, or anyone else. I speak only for myself, not for them.
Both comments and pings are currently closed.