You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
506 B
JavaScript
11 lines
506 B
JavaScript
1 year ago
|
// 1. What directive is used by Node.js in loading the modules it needs?
|
||
|
- Require
|
||
|
// 2. What Node.js module contains a method for server creation?
|
||
|
- http
|
||
|
// 3. What is the method of the http object responsible for creating a server using Node.js?
|
||
|
- http.createServer
|
||
|
// 4. What method of the response object allows us to set status codes and content types?
|
||
|
|
||
|
// 5. Where will console.log() output its contents when run in Node.js?
|
||
|
|
||
|
// 6. What property of the request object contains the address's endpoint?
|