Please ignore the fact that this code achieves nothing and apologies for what\'s probably an inane question!
I understand that I cannot pass a function call into
The correct way of passing a function reference is to use callbacks.
names.forEach(name => setTimeout(function() { printer(name); }, 1000));
callbacks contains reference to the function.
setTimeout(callbackFunction, milliseconds);