Click here to Skip to main content
14,696,589 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
can any one please define me that why we use
setTimeout(function() {
}, 0);


setTimeout(function() {

simple and concise answer required please no links i have already checked.

I know you said "no links", but this answer explains very well why it is useful:[^]
"no links i have already checked"

Tough! :laugh:
You clearly either haven't checked too well, or you didn't read what you found.
A very simple google for the setTimeout function takes you straight to w3Schools:[^] - which tells you exactly what it does, and even gives you examples!

A small bit of reading, and it should all make sense.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900