codejump

Core Modules & CLI

Preview — 3 of 10 questions

What best describes Node.js?

AA JavaScript framework for building websites.
BA database management system.
CA JavaScript runtime environment for executing JavaScript outside the browser.
DA CSS preprocessor.

What is npm?

AA programming language.
BThe package manager for Node.js, used to install and manage dependencies.
CA server runtime environment.
DA CSS framework.

What does the following code do?

javascript
const http = require("http");

const server = http.createServer((req, res) => {
  res.writeHead(200, { "Content-Type": "text/plain" });
  res.end("Hello, World!");
});

server.listen(3000);
ACreates a database connection.
BCreates a client connection.
CCreates an HTTP server that listens on port 3000 and responds with "Hello, World!"
DCreates a file system watcher.

Sign up free to play

Answer all 10 questions (7 more), see explanations for every answer, and track your score.