Specifically some missing semicolons and a missing const.
It's funny that I didn't realize that emacs was doing live linting of
JavaScript all along here, (and highlighting all problems with various
colors and underlining).
-const express = require("express")
-const cors = require("cors")
+const express = require("express");
+const cors = require("cors");
const body_parser = require("body-parser");
const app = express();
-app.use(cors())
+app.use(cors());
class Game {
constructor() {
}
}
-game = new Game();
+const game = new Game();
app.use(body_parser.urlencoded({ extended: false }));
app.use(body_parser.json());