Shouldn't this work?
// call the two functions here
warningMaker("killer penguins")(6, "Ice Caves");
warningMaker("snow yeti")(1, "Blizzard Beach");
I get this error:
Uh, so you got nothing? Try
calling the correct alerts for the described obstacles, passing in
number and location parameters based on the radio transmission.
Just to make it clear for anyone who makes this mistake, the provided code has already provided the animal name to the warningMaker function within the variable expressions, which are now filled with the nested function that contains the warning message, therefore there is no reason to try to send it as a parameter. All you need to do is call the appropriate variable names, which stand for the anonymous function that makes the message, and pass the two parameters needed.