Created
July 16, 2020 18:13
-
-
Save digitallysavvy/3ed9861357c9dbf5282583eb2427a8f5 to your computer and use it in GitHub Desktop.
Simple implementation of the Express listen method that passes in the Port and a callback to display the port number.
This file contains 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
app.listen(PORT, () => { | |
console.log(`Listening on port: ${PORT}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment