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();
const body_parser = require("body-parser");
const app = express();
class Game {
constructor() {
class Game {
constructor() {
+const game = new Game();
app.use(body_parser.urlencoded({ extended: false }));
app.use(body_parser.json());
app.use(body_parser.urlencoded({ extended: false }));
app.use(body_parser.json());