You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep in mind that Server.listen() is an async function. When you are using it below, there is a risk your console.log will run before the server is actually up and running.
Keep in mind that
Server.listen()
is an async function. When you are using it below, there is a risk yourconsole.log
will run before the server is actually up and running.https://github.com/fac-14/Week4TakingAIME/blob/master/src/server.js#L9-L11
Consider popping your
console.log
into a callback :)You can read more about
Server.listen()
parameters here:https://nodejs.org/api/net.html#net_server_listen
The text was updated successfully, but these errors were encountered: