12 ms·
the other benefit is that `void 0` cannot be overwritten in sloppy mode, whereas you can do something crazy like this: undefined = 'lol';
by 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 agoNo you can't. You can do something like function(undefined) {}, but the global 'undefined' is non-writable and non-configurable.