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
I got the expected output as per documentation when run under CommonJS module.
so is the output is dependent on ES/CommonJS, it would be helpful if that is mentioned in the documentation.
The text was updated successfully, but these errors were encountered:
@maccrin actually same I am on ubuntu node v20.11.1
if I paste the code in test.js and run node test.js
my output is similar "bar" comes before foo sometimes. however this is not always the case you can try again it will be different "foo" will come before "bar". so I am not sure what could be the reason here. If someone explains this weird behavior that would be great.
but when I run the code in the node shell it gives the expected out like in the article
I also tested in mac in both ways the expected output (from the article) was similar in both cases
Enter your suggestions in details:
when I run the below code in ES module
output
As per the documentation
https://github.com/nodejs/nodejs.org/blob/main/pages/en/learn/asynchronous-work/understanding-setimmediate.md
It should be
I got the expected output as per documentation when run under CommonJS module.
so is the output is dependent on ES/CommonJS, it would be helpful if that is mentioned in the documentation.
The text was updated successfully, but these errors were encountered: