Created
November 23, 2020 16:17
-
-
Save nodirshox/55957e2029a44067738afdd9d2d49c2d to your computer and use it in GitHub Desktop.
Hello World in Node JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
app.get('/', function(req, res) { | |
res.send('Hello World!') | |
}) | |
const port = 3000 | |
app.listen(port, () => { | |
console.log('Server started on port', port) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment