Which Node.js best practice helps prevent callback hell in production codebases?
-
A
Using nested callbacks for all async operations
-
B
Adopting Promises or async/await to flatten async flows
-
C
Calling all I/O operations synchronously
-
D
Increasing the event loop tick rate