Skip to content

Commit 6e15218

Browse files
committed
Update NodeJS.md
1 parent be449f8 commit 6e15218

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

NodeJS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
require('http').createServer( (req, res) => {
44
// make me serve different files on /foo vs /bar
55
});
6+
7+
What is "callback hell" and describe a solution methodology.
8+
9+
How do you handle an unhandled exception in NodeJS? Use the process object to create an exception handler for these.
10+
11+
process.on('uncaughtException', function(err) {
12+
console.log('Caught exception: ' + err);
13+
});

0 commit comments

Comments
 (0)