const port = process.env.PORT || 8080; app.listen(port, () => console.log('Listening on port ${port}..')); code example
Example: const port = process.env.port || 3000
const port = process.env.port || 3000
const port = process.env.port || 3000