Hacker News new | past | comments | ask | show | jobs | submit login

// bad const item = new Object();

// good const item = {};

Literally useless differentiation.




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.


That's why they call it Style Guide. You know - Style?


Same functionality, less characters. This also helps being consistent.


Hah, "literally"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: