JavaScript Programming/Node.js REST API/Hello World

server.js

edit
// This program uses Node.js and Express.js to create a simple web server.
//
// References:
//   https://medium.com/@onejohi/building-a-simple-rest-api-with-nodejs-and-express-da6273ed7ca9

"use strict";

var express = require("express");
var server = express();

server.get("/", (request, response, next) => {
    response.send("Hello World!");
});

server.listen(3000, () => {
    console.log("Server running on port 3000");
});