Question
JAVASCRIPT PLEASE Write a function `thunderstorm` that takes an array containing a series of strings that represents storm events (lightning, wind, rain). Your function should
JAVASCRIPT PLEASE
Write a function `thunderstorm` that takes an array containing a series of strings that represents storm events ("lightning", "wind", "rain"). Your function should `console.log` each storm event, followed by a pause of 200ms after each event. - For the "lightning" storm event, you should first log a "FLASH!" followed by a "BOOM!" 400ms later. - Note: If there is another storm event after the lightning, it should execute 200ms after the "FLASH!" - For the "rain" or "wind" event, you should simply log the name of the storm event. Note: You must use a recursive approach to solve this problem.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started