2 ms·
When calling a function, you know what arguments/parameters to use, right!? Then you also know if it's sync or async. The browsers way of dealing with async see
by z3t4 9y ago
When calling a function, you know what arguments/parameters to use, right!? Then you also know if it's sync or async. The browsers way of dealing with async seems to be forgotten, for example:
button.onclick = buttonClicked;
I find this pattern easier to deal with then callbacks.