Hi, I am doing a test on the use of asynchronous functions and we are seeing Callback, they give me the following statement:
Implement the "callback" function to receive a number and what print by console. Use that function to iterate over the array using the forEach method that they have.
and they give me the following code:
var miArray = [1, 2, 3, 4];
function callback(/*...*/) {
}
miArray./*...*/
I have tried to give you a solution in many ways but I have not been able to, I hope I can receive help, as they demand a particular way.