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
A function that does not contain any await expressions should not be async (except for some edge cases in TypeScript which are discussed below). Asynchronous functions in JavaScript behave differently than other functions in two important ways:
Occurrences
constserver=http.createServer(app)asyncfunctionstartServer(){server.listen(PORT,()=>{mongoConnect()console.log(`Server is running on port ${PORT}`)})}startServer()
Description
A function that does not contain any
await
expressions should not beasync
(except for some edge cases in TypeScript which are discussed below). Asynchronous functions in JavaScript behave differently than other functions in two important ways:Occurrences
The text was updated successfully, but these errors were encountered: