Thing in your code does not always happen as fast as you would like.
Things in your code do not always happen as fast as you would like.
Sometimes it is important to wait for a function to finish before keep going on.
Sometimes it is important to wait for a function to finish before keep going on. Other times you don't want your code to be blocking while waiting.
Create an asynchronous function `processInfo` in a file `kept-promise.js`. The function `processInfo` will take an asynchronous function as an input, and it will print the message `Ok!` if the return of the input function is zero or a multiple of two, `Error!` otherwise.
The following function can be used as an example of input function for `processInfo`: