for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i), i * 1000);
}
Options : -
A) 0, 1, 2
B) 1, 2, 3
C) 0, 0, 0
D) 3, 3, 3
Comment with correct answer.
for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i), i * 1000);
}
Options : -
A) 0, 1, 2
B) 1, 2, 3
C) 0, 0, 0
D) 3, 3, 3
Comment with correct answer.
For further actions, you may consider blocking this person and/or reporting abuse
This post blew up on DEV in 2020:
As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! 🥳
Happy coding!
Dharan Ganesan -
iskurbanov -
Bas Steins -
Nathan Windisch -
Once suspended, shamgurav96 will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, shamgurav96 will be able to comment and publish posts again.
Once unpublished, all posts by shamgurav96 will become hidden and only accessible to themselves.
If shamgurav96 is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Sham Gurav.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag shamgurav96:
Unflagging shamgurav96 will restore default visibility to their posts.
Top comments (0)