Which are proper ways to create a microtask?
A)
setTimeout(() => func());
B)
Promise.resolve().then(() => func());
C)
queueMicrotask(() => func());
D)
setMicrotask(() => func());Which are proper ways to create a microtask?
A)
setTimeout(() => func());
B)
Promise.resolve().then(() => func());
C)
queueMicrotask(() => func());
D)
setMicrotask(() => func());Create a free account to access the full topic