- Callback functions are functions passed as an argument to a calling function.
- Callback functions must meet the specification of the calling function.
- Use the imported API function
notify
in your function. - Pass an object to
notify
. It should have a property ofmessage
. Think about what the message value should be. - Pay attention to the JSDoc type hint -- the function should not return a value.
- Use the imported API function
notify
in your function. - Pass another object to
notify
. It should have a property ofmessage
. The message value should differ from the last part. - Pay attention to the comments [JSDoc] above the function definition:
- The function should not return a value.
- Use the already imported
order
function. - Pay attention to the JSDoc type hints -- the function should receive 3 arguments and not return a value.
- Reuse the previously created callbacks as arguments to the order function.
- Reuse the functions from the previous tasks.
- Pay attention to the JSDoc type hints -- the function should receive 2 arguments and not return a value.
- Combine the arguments into an object representing the query to the grocer to place an order.