Skip to content

Commit e2dde36

Browse files
committed
Update README.md
1 parent 2ca1ac1 commit e2dde36

File tree

1 file changed

+29
-90
lines changed

1 file changed

+29
-90
lines changed

README.md

+29-90
Original file line numberDiff line numberDiff line change
@@ -2,101 +2,37 @@
22

33
*Click <img src="assets/star.png" width="18" height="18" align="absmiddle" title="Star" /> if you like the project. Pull Requests are highly appreciated.*
44

5-
## Table of Contents
5+
## Related Interview Questions
66

7-
* *[NodeJS APIs](nodejs-api.md)*
8-
* *[NodeJS Coding Practice](nodejs-programming.md)*
9-
* *[NodeJS Commands](nodejs-commands.md)*
7+
* [HTML5 Interview Questions](https://github.com/learning-zone/html-interview-questions/blob/master/README.md)
8+
* [CSS Interview Questions](https://github.com/learning-zone/css-interview-questions/blob/master/README.md)
9+
* [JavaScript Interview Questions](https://github.com/learning-zone/javascript-interview-questions/blob/master/README.md)
10+
* [Node.js APIs](nodejs-api.md)
11+
* [Node.js Coding Practice](nodejs-programming.md)
12+
* [Node.js Commands](nodejs-commands.md)
1013

1114
<br/>
1215

13-
| Sl.No| Questions |
14-
|------|------------------|
15-
| 01. |[What does the runtime environment mean in Node.js?](#q-what-does-the-runtime-environment-mean-in-nodejs)|
16-
| 02. |[What is Node.js?](#q-what-is-nodejs)|
17-
| 03. |[What is Node.js Process Model?](#q-what-is-nodejs-process-model)|
18-
| 04. |[What are the data types in Node.js?](#q-what-are-the-data-types-in-nodejs)|
19-
| 05. |[How to create a simple server in Node.js that returns Hello World?](#q-how-to-create-a-simple-server-in-nodejs-that-returns-hello-world)|
20-
| 06. |[How do Node.js works?](#q-how-do-nodejs-works)|
21-
| 07. |[What is an error-first callback?](#q-what-is-an-error-first-callback)|
22-
| 08. |[What is callback hell in Node.js?](#q-what-is-callback-hell-in-nodejs)|
23-
| 09. |[What are Promises in Node.js?](#q-what-are-promises-in-nodejs)|
24-
| 10. |[What tools can be used to assure consistent style?](#q-what-tools-can-be-used-to-assure-consistent-style)|
25-
| 11. |[When should you npm and when yarn?](#q-when-should-you-npm-and-when-yarn)|
26-
| 12. |[What is a stub?](#q-what-is-a-stub)|
27-
| 13. |[What is a test pyramid? How can you implement it when talking about HTTP APIs?](#q-what-is-a-test-pyramid-how-can-you-implement-it-when-talking-about-http-apis)|
28-
| 14. |[How can you secure your HTTP cookies against XSS attacks?](#q-how-can-you-secure-your-http-cookies-against-xss-attacks)|
29-
| 15. |[How can you make sure your dependencies are safe?](#q-how-can-you-make-sure-your-dependencies-are-safe)|
30-
| 16. |[What is Event loop in Node.js? How does it work?](#q-what-is-event-loop-in-nodejs-how-does-it-work)|
31-
| 17. |[What is REPL? What purpose it is used for?](#q-what-is-repl-what-purpose-it-is-used-for)|
32-
| 18. |[What is the difference between Asynchronous and Non-blocking?](#q-what-is-the-difference-between-asynchronous-and-non-blocking)|
33-
| 19. |[How to debug an application in Node.js?](#q-how-to-debug-an-application-in-nodejs)|
34-
| 20. |[What are some of the most popular packages of Node.js?](#q-what-are-some-of-the-most-popular-packages-of-nodejs)|
35-
| 21. |[What is EventEmitter in Node.js?](#q-what-is-eventemitter-in-nodejs)|
36-
| 22. |[How many types of streams are present in node.js?](#q-how-many-types-of-streams-are-present-in-nodejs)|
37-
| 23. |[What is crypto in Node.js? How do you cipher the secure information in Node.js?](#q-what-is-crypto-in-nodejs-how-do-you-cipher-the-secure-information-in-nodejs)|
38-
| 24. |[What is the use of DNS module in Node.js?](#q-what-is-the-use-of-dns-module-in-nodejs)|
39-
| 25. |[What are the security mechanisms available in Node.js?](#q-what-are-the-security-mechanisms-available-in-nodejs)|
40-
| 26. |[Name the types of API functions in Node.js.](#q-name-the-types-of-api-functions-in-nodejs)
41-
| 27. |[How does Node.js handle child threads?](#q-how-does-nodejs-handle-child-threads)|
42-
| 28. |[What is the preferred method of resolving unhandled exceptions in Node.js?](#q-what-is-the-preferred-method-of-resolving-unhandled-exceptions-in-nodejs)|
43-
| 29. |[How does Node.js support multi-processor platforms, and does it fully utilize all processor resources?](#q-how-does-nodejs-support-multi-processor-platforms-and-does-it-fully-utilize-all-processor-resources)|
44-
| 30. |[What is typically the first argument passed to a Node.js callback handler?](#q-what-is-typically-the-first-argument-passed-to-a-nodejs-callback-handler)|
45-
| 31. |[How Node.js read the content of a file?](#q-how-nodejs-read-the-content-of-a-file)|
46-
| 32. |[What is JIT and how is it related to Node.js?](#q-what-is-jit-and-how-is-it-related-to-nodejs)|
47-
| 33. |[What is difference between put and patch?](#q-what-is-difference-between-put-and-patch)|
48-
| 34. |[List types of Http requests supported by Node.js.](#q-list-types-of-http-requests-supported-by-nodejs)
49-
| 35. |[Why to use Express.js?](#q-why-to-use-expressjs)|
50-
| 36. |[Write the steps for setting up an Express JS application.](#q-write-the-steps-for-setting-up-an-express-js-application)
51-
| 37. |[Since node is a single threaded process, how to make use of all CPUs?](#q-since-node-is-a-single-threaded-process-how-to-make-use-of-all-cpus)|
52-
| 38. |[What does emitter do and what is dispatcher?](#q-what-does-emitter-do-and-what-is-dispatcher)|
53-
| 39. |[How to kill child processes that spawn their own child processes in Node.js?](#q-how-to-kill-child-processes-that-spawn-their-own-child-processes-in-nodejs)|
54-
| 40. |[What do you understand by Reactor Pattern in Node.js?](#q-what-do-you-understand-by-reactor-pattern-in-nodejs)|
55-
| 41. |[What are the key features of Node.js?](#q-what-are-the-key-features-of-nodejs)|
56-
| 42. |[What are globals in Node.js?](#q-what-are-globals-in-nodejs)|
57-
| 43. |[What is chaining process in Node.js?](#q-what-is-chaining-process-in-nodejs)|
58-
| 44. |[What is a control flow function? what are the steps does it execute?](#q-what-is-a-control-flow-function-what-are-the-steps-does-it-execute)|
59-
| 45. |[What is npm in Node.js?](#q-what-is-npm-in-nodejs)|
60-
| 46. |[When to use Node.js and when not to use it?](#q-when-to-use-nodejs-and-when-not-to-use-it)|
61-
| 47. |[Explain how does Node.js work?](#q-explain-how-does-nodejs-work)|
62-
| 48. |[Is Node.js entirely based on a single-thread?](#q-is-nodejs-entirely-based-on-a-single-thread)|
63-
| 49. |[How to make post request in Node.js?](#q-how-to-make-post-request-in-nodejs)|
64-
| 50. |[Can you create http server in Node.js, explain the code used for it?](#q-can-you-create-http-server-in-nodejs-explain-the-code-used-for-it)|
65-
| 51. |[How to load html in Node.js?](#q-how-to-load-html-in-nodejs)|
66-
| 52. |[How can you listen on port 80 with Node?](#q-how-can-you-listen-on-port-80-with-node)|
67-
| 53. |[What is the difference between operational and programmer errors?](#q-what-is-the-difference-between-operational-and-programmer-errors)|
68-
| 54. |[Why npm shrinkwrap is useful?](#q-why-npm-shrinkwrap-is-useful)|
69-
| 55. |[What is your favourite HTTP framework and why?](#q-what-is-your-favourite-http-framework-and-why)|
70-
| 56. |[What are the Challenges with Node.js?](#q-what-are-the-challenges-with-nodejs)|
71-
| 57. |[What is the difference between Node.js vs Ajax?](#q-what-is-the-difference-between-nodejs-vs-ajax)|
72-
| 58. |[How Node.js overcomes the problem of blocking of I/O operations?](#q-how-nodejs-overcomes-the-problem-of-blocking-of-i-o-operations)|
73-
| 59. |[Mention the steps by which you can async in Node.js?](#q-mention-the-steps-by-which-you-can-async-in-nodejs)|
74-
| 60. |[What are the timing features of Node.js?](#q-what-are-the-timing-features-of-nodejs)|
75-
| 61. |[What is LTS releases of Node.js why should you care?](#q-what-is-lts-releases-of-nodejs-why-should-you-care)|
76-
| 62. |[Why should you separate Express 'app' and 'server'?](#q-why-should-you-separate-express-app-and-server)|
77-
| 63. |[What is the difference between process.nextTick() and setImmediate()?](#q-what-is-the-difference-between-processnexttick-and-setimmediate)|
78-
| 64. |[What is difference between JavaScript and Node.js?](#q-what-is-difference-between-javascript-and-nodejs)|
79-
| 65. |[What are the difference between Events and Callbacks?](#q-what-are-the-difference-between-events-and-callbacks)|
80-
| 66. |[Explain RESTful Web Services in Node.js?](#q-explain-restful-web-services-in-nodejs)|
81-
| 67. |[How to handle file upload in Node js?](#q-how-to-handle-file-upload-in-node-js)|
82-
| 68. |[Explain the terms body-parser, cookie-parser, debug, jade, morgan, nodemon, pm2, serve-favicon, cors in Express JS?](#q-explain-the-terms-body-parser-cookie-parser-debug-jade-morgan-nodemon-pm2-serve-favicon-cors-in-express-js)|
83-
| 69. |[How does routing work in Node.js](#q-how-does-routing-work-in-node-js)|
84-
| 70. |[How Node prevents blocking code?](#q-how-node-prevents-blocking-code)|
85-
| 71. |[What is difference between promise and async await in node js?](#q-what-is-difference-between-promise-and-async-await-in-node-js)|
86-
| 72. |[How to use JSON Web Token (JWT) for authentication in node js?](#q-how-to-use-json-web-token-jwt-for-authentication-in-node-js)|
87-
| 73. |[How to build a microservices architecture with node js?](#q-how-to-build-a-microservices-architecture-with-node-js)|
88-
| 74. |[How to use Q promise in node js?](#q-how-to-use-q-promise-in-node-js)|
89-
| 75. |[How to use locale (i18n) in node js?](#q-how-to-use-locale-i18n-in-node-js)|
90-
| 76. |[How to Implement Memcached in Nodejs?](#q-how-to-implement-memcached-in-nodejs)|
91-
| 77. |[Explain Error Handling approaches in Nodejs?](#q-explain-error-handling-approaches-in-nodejs)|
92-
| 78. |[How to generate and verify checksum of the given string in Nodejs](#q-how-to-generate-and-verify-checksum-of-the-given-string-in-nodejs)|
93-
| 79. |[What is Callback function in node.js?](#q-what-is-callback-function-in-nodejs)|
94-
| 80. |[What is asynchronous programming in node.js?](#q-what-is-asynchronous-programming-in-nodejs)|
95-
| 81. |[How to implement asymmetric cryptography when signing and verify JSON Web Token (JWT) for authentication in node js?](#q-how-to-implement-asymmetric-cryptography-when-signing-and-verifying-json-web-token-jwt-for-authentication-in-node-js) |
96-
| 82. |[If Node.js is single threaded then how it handles concurrency?](#q-if-nodejs-is-single-threaded-then-how-it-handles-concurrency)
16+
## Table of Contents
17+
18+
* [Introduction](#-1-introduction)
19+
* [Node.js Setup](#-2-nodejs-setup)
20+
* [Node.js Events](#-3-nodejs-events)
21+
* [Node.js File System](#-4-nodejs-file-system)
22+
* [Node.js Streams](#-5-nodejs-streams)
23+
* [Node.js Web Module](#-6-nodejs-web-module)
24+
* [Node.js Middleware](#-7-nodejs-middleware)
25+
* [Node.js RESTFul API](#-8-nodejs-restful-api)
26+
* [Node.js Routing](#-9-nodejs-routing)
27+
* [Node.js Error Handling](#-10-nodejs-error-handling)
28+
* [Node.js Logging](#-11-nodejs-logging)
29+
* [Node.js Testing](#-12-nodejs-testing)
9730

9831
<br/>
9932

33+
## # 1. INTRODUCTION
34+
35+
<br/>
10036

10137
## Q. ***What is Node.js?***
10238

@@ -162,12 +98,14 @@ Just like JS, there are two categories of data types in Node: Primitives and Obj
16298

16399
* other regular objects
164100

165-
166-
167101
<div align="right">
168102
<b><a href="#">↥ back to top</a></b>
169103
</div>
170104

105+
## # 2. NODEJS SETUP
106+
107+
<br/>
108+
171109
## Q. ***How to create a simple server in Node.js that returns Hello World?***
172110

173111
**Step 01**: Create a project directory
@@ -252,6 +190,7 @@ console.log(qdata.month); //returns 'september'
252190
<b><a href="#">↥ back to top</a></b>
253191
</div>
254192

193+
## # 3. NODEJS EVENTS
255194

256195
## Q. ***How to make an HTTP POST request using Node.js?***
257196

0 commit comments

Comments
 (0)