File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed
Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change 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+ });```
You can’t perform that action at this time.
0 commit comments