Skip to content

Instantly share code, notes, and snippets.

@digitallysavvy
Created July 16, 2020 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitallysavvy/3ed9861357c9dbf5282583eb2427a8f5 to your computer and use it in GitHub Desktop.
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.
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