JS questions
Using callbacks syntax write a set of functions that checks andmakes a list of todos based on priorities.
Requirements
– Use callbacks
– Use setTimeout()
– checkPriority(todo)
This function accepts a todo object. It checks if the todo has apriority associated to it.
If it does then it callsback after 90ms with the priorityobject.
If it does not then it callsback with an error and only thename.
– makePriorityList(todos)
This function accepts an array of objects. It prints the resultsONLY when the entire todo array has been iterated.
It should print each the priority array and the error arrayseperately.
– EXTRA CREDIT (+10)
– When printing inside makePriorityList(), print the array
PayPal Gateway not configured
PayPal Gateway not configured