Open jema28 opened 5 years ago
It's best practice to add the console.log inside a callback function otherwise it may console.log even if the server hasn't worked. https://nodejs.org/api/net.html#net_server_listen
server.listen(PORT, () => `Server is running on ${PORT}`)
I see :)
It's best practice to add the console.log inside a callback function otherwise it may console.log even if the server hasn't worked. https://nodejs.org/api/net.html#net_server_listen