Coding task · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript
Practice: Callback Functions
Create a processData function that accepts data and a callback, then invokes the callback with the processed data.
Task
Write a function that accepts a callback and invokes it with dinosaur data.