Coding task · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript
Practice: Callback in Monitoring
Create a dinosaur monitoring function that accepts a callback invoked with the check results. A callback is a function passed as an argument.
Task
Implement a monitorDinosaur(species, callback) function that, after checking the dinosaur, calls the callback with a status report.