FACK1 / fid-or

0 stars 1 forks source link

Server console log #40

Open jema28 opened 5 years ago

jema28 commented 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}`)
orjwan98 commented 5 years ago

I see :)