Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
joeblow99
· 11y ago · 0 comments
// bad const item = new Object();
// good const item = {};
Literally useless differentiation.
Comments
[–]
razwall
11y ago
Seems pretty useful to me. If I see "new Object()", I know the code was written by someone who doesn't know JS very well, so I should look more carefully for bugs.
[–]
Ronsenshi
11y ago
That's why they call it Style Guide. You know - Style?
[–]
roelvanhintum
11y ago
Same functionality, less characters. This also helps being consistent.
[–]
jeffpeterson
11y ago
Hah, "literally"