Skip to content

Server console log #40

@jema28

Description

@jema28

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}`)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions