Skip to main content

NodeJS Interview Cheat Sheet

Top 50 interview questions with concise answers. Print this page or save as PDF for offline study.

View All NodeJS Questions

1. What is Node.js?

2. Why was Node.js created?

3. What is the V8 engine in Node.js?

4. What is the event loop in Node.js?

5. What is single-threaded architecture?

6. What is npm?

7. What is a package.json file?

8. What are dependencies and devDependencies?

9. What is a callback function?

10. What is a module in Node.js?

11. What is CommonJS?

12. What is the fs module used for?

13. What is the path module used for?

14. What is the os module?

15. What is a buffer in Node.js?

16. What is a stream in Node.js?

17. What is server-side JavaScript?

18. What is the http module used for?

19. What is middleware?

20. What is Express.js?

21. What is routing in Node and Express?

22. What is JSON in Node.js?

23. What is an API endpoint?

24. What is an environment variable?

25. What is process.env?

26. What is nodemon?

27. What is asynchronous programming in Node?

28. What is synchronous programming?

29. What is an error-first callback?

30. Difference between console.log and return?

31. What is the difference between synchronous and asynchronous file operations in Node.js?

32. What is the role of the event emitter?

33. How does Node.js handle concurrency if it is single-threaded?

34. What is middleware chaining in Express.js?

35. What is CORS and why is it needed?

36. What is the difference between PUT and PATCH?

37. What is the purpose of Express.js router?

38. How does Node.js handle errors in asynchronous code?

39. What is a promise in Node.js?

40. What is async/await and why is it useful?

41. What is the purpose of the cluster module in Node.js?

42. What is rate limiting in Node.js?

43. What are HTTP status codes and why are they important?

44. What is streaming in Node.js?

45. What is a template engine in Node.js?

46. What is JSON Web Token (JWT)?

47. What is the difference between global and local npm installation?

48. What is nodemailer and where is it used?

49. What is dotenv and why is it used?

50. What is body parsing in Express.js?

Ready to level up? Start Practice