This repo is a collection of good JavaScript resource(link, blog) I read online on specify JavaScript topics.
you can also check my node-cheatsheet for node specific pointers
2 space
is the defacto standard.
- Node.js uses 2 spaces
- npm uses 2 spaces
- Google JavaScript style guide uses 2 spaces
- Felixge’s node-style-guide uses 2 spaces
- Ryan Dahl, the creator of Node.js uses 2 space
Following style guides holds good for both JavaScript
and nodejs
Promises are not neutral enough. They are
- Eager, not lazy
- No cancellation
- Never synchronous
- then() is a mix of map() and flatMap()
- JsTips - Short Javascript Tips - Web, iOS app and android app
MIT