const port = process.env.PORT || 3000; app.listen(port); code example Example: const port = process.env.port || 3000 const port = process.env.port || 3000