Chapter 5: prettier

This commit is contained in:
Beth Griggs
2020-05-20 01:21:55 +01:00
parent ce759b45a7
commit a0cf6a254c
11 changed files with 41 additions and 3900 deletions
@@ -1 +1 @@
export const name = 'Beth'
export const name = "Beth";
+5 -5
View File
@@ -1,11 +1,11 @@
import express from 'express'
import { name } from './get-name/index.mjs'
import express from "express";
import { name } from "./get-name/index.mjs";
const PORT = 3000;
const app = express();
app.get('/', (req, res) => res.send(`Hello from ${name}!`))
app.get("/", (req, res) => res.send(`Hello from ${name}!`));
app.listen(PORT, () => {
console.log("Express server started on port", PORT);
})
console.log("Express server started on port", PORT);
});