3

On executing openAlert function in chrome console, log doesn't appear in console until I close the alert window.

function openAlert(){
    window.alert("Alert open");
    console.log("alert done");
}

Is invoking window.alert a synchronous operation?
If it is, then why? As it will block all background work (network calls, time intervals, etc).

Ninja
  • 1,920
  • 1
  • 22
  • 27

0 Answers0