Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
oh_sigh
· 9y ago · 0 comments
Oh JavaScript. Will a Boolean always on all browsers coerce itself into a 0 or 1 if treated like a number?
Comments
[–]
tjgq
9y ago
The Javascript coercion rules, arcane as they are, are actually part of the spec and (barring any bugs) should work across browsers.