I am using setTimeout function:-
function myFunction() {
 alert("1"); // Called 1st
setTimeout(function(){ 
     alert("2");  // Called Third
}, 0000);
/*Same as setTimeout window.setTimeout(slowAlert, 0000);function slowAlert() { alert("That was Same as setTimeout!");}*/ 
     alert("39"); // Called Second
} 
I am unable to understand why alert('2') calls on third time even I am using zero seconds
 
     
     
     
     
    