how to use different port in express from process.env.port code example Example: const port = process.env.port || 3000 const port = process.env.port || 3000