Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ekmartin
· 12y ago · 0 comments
I think minifiers use the former because it's shorter, and thus requires less space.
Comments
[–]
phpnode
12y ago
the other benefit is that `void 0` cannot be overwritten in sloppy mode, whereas you can do something crazy like this:
undefined = 'lol';
[–]
evilpie
12y ago
No you can't. You can do something like function(undefined) {}, but the global 'undefined' is non-writable and non-configurable.
[–]
ahoge
12y ago
That's an ES5 change. With ES3, you can overwrite NaN, Infinity, and undefined.
[–]
LunaSea
12y ago
Only in strict mode I though no ?