Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

Solve the following 1,4 3 2TT 5x- 1+ (15 x) dx 5X

Answered: 1 week ago

Question

Prepare for a successful job interview.

Answered: 1 week ago

Question

Describe barriers to effective listening.

Answered: 1 week ago

Question

List the guidelines for effective listening.

Answered: 1 week ago