Question
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
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