Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

my last chance about Javascript I am very weak at Js language, please teach me understandable, how to understand sentence for js a. an empty

my last chance

about Javascript

I am very weak at Js language, please teach me understandable, how to understand sentence for js

a. an empty array that would be used to store user's inputs.

b. Prompt user in a loop to enter any string/number, until he/she clicks on cancel to end inputting values. Store each entry (except blank spaces or cancel) as an element in your array.

c. Upon exiting the loop, display your array content separated by asterisks "*" in a new h2 element in the div container created above.

d. Randomly select and display one of the elements from your array in a new h2 element in the div container created above, as shown in example below:

i.e: Following value: 123, was one of the inputs you entered.

Or i.e: Following value: covid, was one of the inputs you entered.

e. Enhance your output (step above), by evaluating the randomly selected value from your array, to display number/string in your output as shown in following examples:

i.e: Following number: 123, was one of the inputs you entered. Or

i.e: Following string: covid, was one of the inputs you entered

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 Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago