Archives: Java

Node.js Interview Questions and answers

1. Explain error-first callback? Answer : Error-first callbacks are used to pass errors and data. The first argument is always an error object that the programmer has to check if something went wrong. Additional arguments are used to pass data. 2. Explain how can you avoid callback hells? Answer : modularization: break callbacks into independent • Read More »