const express = require('express');
const app = express();
const PORT = process.env.PORT || 4001;
// Invoke the app's `.listen()` method below:
app.listen(PORT,() => {
console.log(`Server is listening on port ${PORT}`);
});
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter