Create Building a closure I

he Dev Girls at the Cold Closures Cove sometimes need to provide warnings to travelers about various obstacles that sometimes float into the Cove. To live up the Cove’s name, however, they need you to prepare a very efficient warning maker that will allow them to create only the warnings they need, and only when they need it. Closures to the rescue!

Below, they’ve started a function for called warningMaker with a parameter called obstacle. Within this function, build and return another function that alerts a specific message based on the specific troubling object encountered. The format of the message should be as follows:

Beware! There have been <obstacle> sightings in the Cove today!