debug hover item in chrome devtools

Chrome devtools is our friend, always. Today when I was developing an angular 4.x app with primeng library, i have to check the class set on the tooltip component. As we know the tooltip is hover event based, so if we hover on it to make it showup and then shift our focus to the…

A deeper look at event loop (micro/macro tasks)

One common question So why the result is 1,2,3,5,4 rather than 1,2,3,4,5? If we look at the detail, looks like the async of setTimeout is different from the async of Promise.then, at least they are not in the same async queue. The answer is here in the whatwg SPEC. An event loop has one or more task queues.(task…