We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b16e93f commit 15bd0ebCopy full SHA for 15bd0eb
app/app.js
@@ -3,12 +3,11 @@ const app = express();
3
const PORT = 3000;
4
5
// Creates a GET endpoint at the root URL that returns a string
6
-// () => {} is the alternative to function() {}; it's called an arrow function!
7
-app.get("/", (request, response) => {
+app.get("/", function (request, response) {
8
response.send("Hello, world!");
9
});
10
11
// Starts the server on port 3000
12
-app.listen(PORT, () => {
+app.listen(PORT, function() {
13
console.log(`Server listening on port ${PORT}!`);
14
0 commit comments