Skip to content

Commit 2531cf5

Browse files
committed
Update NodeJS.md
1 parent 0e7a07e commit 2531cf5

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

NodeJS.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
# NodeJS Interview Questions: Jordan
22

3-
1. What are the benefits and or drawbacks of using the express framework with NodeJS?
4-
2. Explain the development/production package dependencies used by the Node Package Manager (NPM) install command.
5-
- --save vs --save-dev in package.json
6-
3. How does NodeJS handle child processes?
7-
- Doesn't have to, it's single threaded (there are advanced ways to use more processes though)
8-
4. What is the core/community established convention for a Node callbacks first parameter?
9-
- Typically the error object
10-
5. What engine does NodeJS run on?
11-
- Googles V8 Engine
12-
6. Using only the http module, create a server that listens on any port of your choosing that responds with "Hello, World!"
13-
14-
```require('http').createServer();
15-
var http = require("http").listen(PORT, () => {
16-
console.log(`Hello world from port ${PORT}!`);
17-
});```
3+
```require('http').createServer( (req, res) => {
4+
// make me serve different files on /foo vs /bar
5+
});```

0 commit comments

Comments
 (0)