Skip to content

Commit b6719ce

Browse files
committed
Important Node.js Interview Questions
1 parent 6b10b21 commit b6719ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ fs.readFile( "file.json", function ( err, data ) {
961961
});
962962
```
963963

964-
Any asynchronous method expects one of the arguments to be a callback. The full callback argument list depends on the caller method, but the first argument is always an error object or null. When we go for the asynchronous method, an exception thrown during function execution cannot be detected in a try/catch statement. The event happens after the JavaScript engine leaves the try block.
964+
Any asynchronous method expects one of the arguments to be a callback. The full callback argument list depends on the caller method, but the first argument is always an error object or null. When we go for the asynchronous method, an exception thrown during function execution cannot be detected in a try/catch statement. The event happens after the JavaScript engine leaves the try block.
965965

966966
In the preceding example, if any exception is thrown during the reading of the file, it lands on the callback function as the first and mandatory parameter.
967967

@@ -1239,7 +1239,7 @@ Each type of Stream is an EventEmitter instance and throws several events at dif
12391239
* **data** − This event is fired when there is data is available to read.
12401240
* **end** − This event is fired when there is no more data to read.
12411241
* **error** − This event is fired when there is any error receiving or writing data.
1242-
* **finish** − This event is fired when all the data has been flushed to underlying system.
1242+
* **finish** − This event is fired when all the data has been flushed to underlying system.
12431243

12441244
**1. Reading from a Stream:**
12451245

@@ -1587,7 +1587,7 @@ PM2 is a production process manager for Node.js applications with a built-in loa
15871587
$ pm2 start app.js -i max --name "Balancer"
15881588
```
15891589

1590-
This command will run the app.js file on the cluster mode to the total no of core available on your server.
1590+
This command will run the app.js file on the cluster mode to the total no of core available on your server.
15911591

15921592
<p align="center">
15931593
<img src="assets/pm2-load-balancer.png" alt="Load Balancing using PM2" width="500px" />

index.md renamed to important.md

File renamed without changes.

0 commit comments

Comments
 (0)