Create a function greetings
that accepts two parameters
a string message
and a
function callback
.
The callback
should always be
console.log
. If the function
is not console.log
then log
to the console:
"Provide correct callback."
Else, greetings
should call
callback
function with
the message
as argument.
For example: