Javascript is one-threaded, that means one thing happens at the time and there's a queue of events that get input and then executed, perhaps it looks like this:
click > mouseMove > functionA > functionB
But there's the confusion: does a function run stop for a few micro-seconds so that my mouseMove
event is handled? How can I run a big function that takes a while to finish and still click items?
Assuming I was running on a very, very slow computer, in theory, would I have to wait for a console.log
for my mouseMove
to register and do its thing?