You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 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)|
24
24
| 14. |[How can you secure your HTTP cookies against XSS attacks?](#q-how-can-you-secure-your-http-cookies-against-xss-attacks)|
25
25
| 15. |[How can you make sure your dependencies are safe?](#q-how-can-you-make-sure-your-dependencies-are-safe)|
26
-
| 16. |[What is Event loop in Node.js? And How does it work?](#q-what-is-event-loop-in-nodejs-and-how-does-it-work)|
26
+
| 16. |[What is Event loop in Node.js? How does it work?](#q-what-is-event-loop-in-nodejs-how-does-it-work)|
27
27
| 17. |[What is REPL? What purpose it is used for?](#q-what-is-repl-what-purpose-it-is-used-for)|
28
28
| 18. |[What is the difference between Asynchronous and Non-blocking?](#q-what-is-the-difference-between-asynchronous-and-non-blocking)|
29
29
| 19. |[How to debug an application in Node.js?](#q-how-to-debug-an-application-in-nodejs)|
30
-
| 20. |[What are some of the most popular modules of Node.js?](#q-what-are-some-of-the-most-popular-modules-of-nodejs)|
30
+
| 20. |[What are some of the most popular packages of Node.js?](#q-what-are-some-of-the-most-popular-packages-of-nodejs)|
31
31
| 21. |[What is EventEmitter in Node.js?](#q-what-is-eventemitter-in-nodejs)|
32
32
| 22. |[How many types of streams are present in node.js?](#q-how-many-types-of-streams-are-present-in-nodejs)|
33
33
| 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)|
@@ -84,7 +84,7 @@
84
84
| 74. |[How to use Q promise in node js?](#q-how-to-use-q-promise-in-node-js)|
85
85
| 75. |[How to use locale (i18n) in node js?](#q-how-to-use-locale-i18n-in-node-js)|
86
86
| 76. |[How to Implement Memcached in Nodejs?](#q-how-to-implement-memcached-in-nodejs)|
87
-
| 77. |[Explain Error Handling in Nodejs?](#q-explain-error-handling-in-nodejs)|
87
+
| 77. |[Explain Error Handling approaches in Nodejs?](#q-explain-error-handling-approaches-in-nodejs)|
88
88
| 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)|
89
89
90
90
<br/>
@@ -98,6 +98,14 @@ Node.js is an open-source server side runtime environment built on Chrome\'s V8
98
98
<b><a href="#">↥ back to top</a></b>
99
99
</div>
100
100
101
+
## Q. ***What are the benefits of using Node.js?***
102
+
103
+
*ToDo*
104
+
105
+
<divalign="right">
106
+
<b><a href="#">↥ back to top</a></b>
107
+
</div>
108
+
101
109
## Q. ***What is Node.js Process Model?***
102
110
103
111
Node.js runs in a single process and the application code runs in a single thread and thereby needs less resources than other platforms. All the user requests to your web application will be handled by a single thread and all the I/O work or long running job is performed asynchronously for a particular request. So, this single thread doesn't have to wait for the request to complete and is free to handle the next request. When asynchronous I/O work completes then it processes the request further and sends the response.
@@ -181,6 +189,22 @@ node app.js
181
189
<b><a href="#">↥ back to top</a></b>
182
190
</div>
183
191
192
+
## Q. ***How to make an HTTP POST request using Node.js?***
193
+
194
+
*ToDo*
195
+
196
+
<divalign="right">
197
+
<b><a href="#">↥ back to top</a></b>
198
+
</div>
199
+
200
+
## Q. ***How to execute an external program from within Node.js?***
201
+
202
+
*ToDo*
203
+
204
+
<divalign="right">
205
+
<b><a href="#">↥ back to top</a></b>
206
+
</div>
207
+
184
208
## Q. ***What does the runtime environment mean in Node.js?***
185
209
186
210
The Node.js runtime is the software stack responsible for installing your web service\'s code and its dependencies and running your service.
@@ -197,6 +221,14 @@ The runtime environment is literally just the environment your application is ru
197
221
<b><a href="#">↥ back to top</a></b>
198
222
</div>
199
223
224
+
## Q. ***Explain usage of NODE_ENV?***
225
+
226
+
*ToDo*
227
+
228
+
<divalign="right">
229
+
<b><a href="#">↥ back to top</a></b>
230
+
</div>
231
+
200
232
## Q. ***How do Node.js works?***
201
233
202
234
<palign="center">
@@ -232,6 +264,38 @@ Node JS Platform does not follow Request/Response Multi-Threaded Stateless Model
232
264
<b><a href="#">↥ back to top</a></b>
233
265
</div>
234
266
267
+
## Q. ***What is the difference between Node.js, AJAX, and JQuery?***
268
+
269
+
*ToDo*
270
+
271
+
<divalign="right">
272
+
<b><a href="#">↥ back to top</a></b>
273
+
</div>
274
+
275
+
## Q. ***What are the core modules of Node.js?***
276
+
277
+
*ToDo*
278
+
279
+
<divalign="right">
280
+
<b><a href="#">↥ back to top</a></b>
281
+
</div>
282
+
283
+
## Q. ***What is callback function in Node.js?***
284
+
285
+
*ToDo*
286
+
287
+
<divalign="right">
288
+
<b><a href="#">↥ back to top</a></b>
289
+
</div>
290
+
291
+
## Q. ***What is EventEmitter in Node.js?***
292
+
293
+
*ToDo*
294
+
295
+
<divalign="right">
296
+
<b><a href="#">↥ back to top</a></b>
297
+
</div>
298
+
235
299
## Q. ***What is an error-first callback?***
236
300
237
301
The pattern used across all the asynchronous methods in Node.js is called *Error-first Callback*. Here is an example:
@@ -561,7 +625,7 @@ The only option is to automate the update / security audit of your dependencies.
561
625
<b><a href="#">↥ back to top</a></b>
562
626
</div>
563
627
564
-
## Q. ***What is Event loop in Node.js? And How does it work?***
628
+
## Q. ***What is Event loop in Node.js? How does it work?***
565
629
566
630
The event loop is what allows Node.js to perform non-blocking I/O operations — despite the fact that JavaScript is single-threaded — by offloading operations to the system kernel whenever possible.
## Q. ***If Node.js is single threaded then how it handles concurrency?***
684
+
685
+
*ToDo*
686
+
687
+
<divalign="right">
688
+
<b><a href="#">↥ back to top</a></b>
689
+
</div>
690
+
619
691
## Q. ***What is REPL? What purpose it is used for?***
620
692
621
693
REPL (READ, EVAL, PRINT, LOOP) is a computer environment similar to Shell (Unix/Linux) and command prompt. Node comes with the REPL environment when it is installed. System interacts with the user through outputs of commands/expressions used. It is useful in writing and debugging the codes. The work of REPL can be understood from its full form:
@@ -640,7 +712,7 @@ $ node
640
712
<b><a href="#">↥ back to top</a></b>
641
713
</div>
642
714
643
-
## Q. ***What is asynchronous programming in node js?***
715
+
## Q. ***What is asynchronous programming in Node.js?***
644
716
645
717
*ToDo*
646
718
@@ -715,16 +787,14 @@ Libraries that enhance stack trace information
715
787
<b><a href="#">↥ back to top</a></b>
716
788
</div>
717
789
718
-
## Q. ***What are some of the most popular modules of Node.js?***
790
+
## Q. ***What are some of the most popular packages of Node.js?***
719
791
720
792
***Async**: Async is a utility module which provides straight-forward, powerful functions for working with asynchronous JavaScript.
721
-
***Browserify**: Browserify will recursively analyze all the require() calls in your app in order to build a bundle you can serve up to the browser in a single <script> tag.
793
+
***Browserify**: Browserify will recursively analyze all the require() calls in your app in order to build a bundle you can serve up to the browser in a single `<script>` tag.
722
794
***Bower**: Bower is a package manager for the web. It works by fetching and installing packages from all over, taking care of hunting, finding, downloading, and saving the stuff you’re looking for.
723
-
***Backbone**: Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
724
795
***Csv**: csv module has four sub modules which provides CSV generation, parsing, transformation and serialization for Node.js.
725
796
***Debug**: Debug is a tiny node.js debugging utility modelled after node core\'s debugging technique.
726
797
***Express**: Express is a fast, un-opinionated, minimalist web framework. It provides small, robust tooling for HTTP servers, making it a great solution for single page applications, web sites, hybrids, or public HTTP APIs.
727
-
***Forever**: A simple CLI tool for ensuring that a given node script runs continuously (i.e. forever).
728
798
***Grunt**: is a JavaScript Task Runner that facilitates creating new projects and makes performing repetitive but necessary tasks such as linting, unit testing, concatenating and minifying files (among other things) trivial.
729
799
***Gulp**: is a streaming build system that helps you automate painful or time-consuming tasks in your development workflow.
730
800
***Hapi**: is a streaming build system that helps you automate painful or time-consuming tasks in your development workflow.
@@ -1297,6 +1367,46 @@ The `V8` was first designed to increase the performance of the JavaScript execut
1297
1367
<b><a href="#">↥ back to top</a></b>
1298
1368
</div>
1299
1369
1370
+
## Q. ***What is chrome v8 engine?***
1371
+
1372
+
*ToDo*
1373
+
1374
+
<divalign="right">
1375
+
<b><a href="#">↥ back to top</a></b>
1376
+
</div>
1377
+
1378
+
## Q. ***What is the purpose of using hidden classes in V8?***
1379
+
1380
+
*ToDo*
1381
+
1382
+
<divalign="right">
1383
+
<b><a href="#">↥ back to top</a></b>
1384
+
</div>
1385
+
1386
+
## Q. ***How V8 compiles JavaScript code?***
1387
+
1388
+
*ToDo*
1389
+
1390
+
<divalign="right">
1391
+
<b><a href="#">↥ back to top</a></b>
1392
+
</div>
1393
+
1394
+
## Q. ***What is V8 Templates?***
1395
+
1396
+
*ToDo*
1397
+
1398
+
<divalign="right">
1399
+
<b><a href="#">↥ back to top</a></b>
1400
+
</div>
1401
+
1402
+
## Q. ***Why is LIBUV needed in Node JS?***
1403
+
1404
+
*ToDo*
1405
+
1406
+
<divalign="right">
1407
+
<b><a href="#">↥ back to top</a></b>
1408
+
</div>
1409
+
1300
1410
## Q. ***What is difference between put and patch?***
1301
1411
1302
1412
PUT and PATCH are HTTP verbs and they both relate to updating a resource. The main difference between PUT and PATCH requests are in the way the server processes the enclosed entity to modify the resource identified by the Request-URI.
@@ -1801,7 +1911,7 @@ It is an approach to connect the output of one stream to the input of another st
1801
1911
<b><a href="#">↥ back to top</a></b>
1802
1912
</div>
1803
1913
1804
-
## Q. ***What is a control flow function? what are the steps does it execute?***
1914
+
## Q. ***What is a control flow function? What are the steps does it execute?***
1805
1915
1806
1916
It is a generic piece of code which runs in between several asynchronous function calls is known as control flow function.
1807
1917
@@ -2114,6 +2224,14 @@ Node.js uses an event loop for this. An event loop is “an entity that handles
2114
2224
<b><a href="#">↥ back to top</a></b>
2115
2225
</div>
2116
2226
2227
+
## Q. ***What are async functions in Node?***
2228
+
2229
+
*ToDo*
2230
+
2231
+
<divalign="right">
2232
+
<b><a href="#">↥ back to top</a></b>
2233
+
</div>
2234
+
2117
2235
## Q. ***Mention the steps by which you can async in Node.js?***
2118
2236
2119
2237
ES 2017 introduced Asynchronous functions. Async functions are essentially a cleaner way to work with asynchronous code in JavaScript.
## Q. ***What are the timing features of Node.js?***
2174
2292
2175
-
The Performance Timing API provides an implementation of the W3C Performance Timeline specification. The purpose of the API is to support collection of high resolution performance metrics. This is the same Performance API as implemented in modern Web browsers.
0 commit comments