DEV Community

loading...

Discussion on: Understanding the Node.js event loop phases and how it executes the JavaScript code.

Collapse
ashutoshningot profile image
Ashutosh Sanjay Ningot

One of the best explanation for the event loop.

Are the following will execute in the same fashion?
1.With main
function main() {
........Some Code.......
}
main();
OR
2.Without main
........Some Code.......