|
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 | 87 | | 77. |[Explain Error Handling in node js?](#q-explain-error-handling-in-node-js)|
|
| 88 | +| 78. |[How to generate and verify checksum of the given string in Node.js](#q-how-to-generate-and-verify-checksum-of-the-given-string-in-node-js)| |
88 | 89 |
|
89 | 90 | <br/>
|
90 | 91 |
|
@@ -2310,7 +2311,7 @@ eventEmitter.emit('Sum', '10', '20');
|
2310 | 2311 | <b><a href="#">↥ back to top</a></b>
|
2311 | 2312 | </div>
|
2312 | 2313 |
|
2313 |
| -## Q. ***Explain RESTful Web Services in Node.js?*** |
| 2314 | +## 66Q. ***Explain RESTful Web Services in Node.js?*** |
2314 | 2315 |
|
2315 | 2316 | REST stands for REpresentational State Transfer. REST is web standards based architecture and uses HTTP Protocol.
|
2316 | 2317 | It is an architectural style as well as an approach for communications purposes that is often used in various web services development. A REST Server simply provides access to resources and REST client accesses and modifies the resources using HTTP protocol.
|
@@ -2445,7 +2446,7 @@ var server = app.listen(3000, function () {
|
2445 | 2446 | <b><a href="#">↥ back to top</a></b>
|
2446 | 2447 | </div>
|
2447 | 2448 |
|
2448 |
| -## Q. ***How to handle file upload in Node.js?*** |
| 2449 | +## 67Q. ***How to handle file upload in Node.js?*** |
2449 | 2450 |
|
2450 | 2451 | * **express**: Popular web framework built on top of Node.js, used for creating REST-API.
|
2451 | 2452 | * **body-parser**: Parse incoming request bodies in a middleware
|
@@ -2543,7 +2544,7 @@ app.listen(3000, function(){
|
2543 | 2544 | <b><a href="#">↥ back to top</a></b>
|
2544 | 2545 | </div>
|
2545 | 2546 |
|
2546 |
| -## Q. ***Explain the terms body-parser, cookie-parser, morgan, nodemon, pm2, serve-favicon, cors, dotenv, fs-extra, moment in Express JS?*** |
| 2547 | +## 68Q. ***Explain the terms body-parser, cookie-parser, morgan, nodemon, pm2, serve-favicon, cors, dotenv, fs-extra, moment in Express JS?*** |
2547 | 2548 |
|
2548 | 2549 | **a) body-parser**
|
2549 | 2550 |
|
@@ -2853,7 +2854,7 @@ moment().subtract(3, 'days').calendar(); // Last Wednesday at 3:18 PM
|
2853 | 2854 | <b><a href="#">↥ back to top</a></b>
|
2854 | 2855 | </div>
|
2855 | 2856 |
|
2856 |
| -## Q. ***How does routing work in Node.js?*** |
| 2857 | +## 69Q. ***How does routing work in Node.js?*** |
2857 | 2858 |
|
2858 | 2859 | Routing defines the way in which the client requests are handled by the application endpoints. We define routing using methods of the Express app object that correspond to HTTP methods; for example, `app.get()` to handle `GET` requests and `app.post` to handle `POST` requests, `app.all()` to handle all HTTP methods and `app.use()` to specify middleware as the callback function.
|
2859 | 2860 |
|
@@ -2974,7 +2975,7 @@ module.exports = router
|
2974 | 2975 | <b><a href="#">↥ back to top</a></b>
|
2975 | 2976 | </div>
|
2976 | 2977 |
|
2977 |
| -## Q. ***How node.js prevents blocking code?*** |
| 2978 | +## 70Q. ***How node.js prevents blocking code?*** |
2978 | 2979 |
|
2979 | 2980 | **Blocking vs Non-blocking**
|
2980 | 2981 |
|
@@ -3004,7 +3005,7 @@ moreWork(); // will run before console.log
|
3004 | 3005 | <b><a href="#">↥ back to top</a></b>
|
3005 | 3006 | </div>
|
3006 | 3007 |
|
3007 |
| -## Q. ***What is difference between promises and async-await in Node.js?*** |
| 3008 | +## 71Q. ***What is difference between promises and async-await in Node.js?*** |
3008 | 3009 |
|
3009 | 3010 | **1. Promises**
|
3010 | 3011 |
|
@@ -3054,13 +3055,13 @@ async function logFetch(url) {
|
3054 | 3055 | <b><a href="#">↥ back to top</a></b>
|
3055 | 3056 | </div>
|
3056 | 3057 |
|
3057 |
| -#### Q. ***How to use JSON Web Token (JWT) for authentication in Node.js?*** |
3058 |
| -#### Q. ***How to build a microservices architecture with Node.js?*** |
3059 |
| -#### Q. ***How to use Q promise in Node.js?*** |
3060 |
| -#### Q. ***How to use locale (i18n) in Node.js?*** |
3061 |
| -#### Q. ***How to implement Memcached in Node.js?*** |
3062 |
| -#### Q. ***Explain error handling in Node.js?*** |
3063 |
| -#### Q. ***How to generate and verify checksum of the given string in Node.js*** |
| 3058 | +#### 72Q. ***How to use JSON Web Token (JWT) for authentication in Node.js?*** |
| 3059 | +#### 73Q. ***How to build a microservices architecture with Node.js?*** |
| 3060 | +#### 74Q. ***How to use Q promise in Node.js?*** |
| 3061 | +#### 75Q. ***How to use locale (i18n) in Node.js?*** |
| 3062 | +#### 76Q. ***How to implement Memcached in Node.js?*** |
| 3063 | +#### 77Q. ***Explain error handling in Node.js?*** |
| 3064 | +#### 78Q. ***How to generate and verify checksum of the given string in Node.js*** |
3064 | 3065 |
|
3065 | 3066 | <div align="right">
|
3066 | 3067 | <b><a href="#">↥ back to top</a></b>
|
|
0 commit comments