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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!