Question: You should create a .js file to finish Whenever the button is pressed, a prompt should be produced that prompts the user for either Hello
You should create a .js file to finish
- Whenever the button is pressed, a prompt should be produced that prompts the user for either "Hello" or "Goodbye".
- If the user inputs "Hello" into the prompt, double all of the numbers for the hello list (and ONLY the hello list) (If enter hello twice, the number will be multiplied four times and so on).
- If the user inputs "Goodbye" into the prompt, double all of the numbers for the goodbye list (and ONLY the goodbye list)
- This should be accomplished with a single function
- This is the HTML code
-
Changing Content Hello Numbers
- Hello Number 1
- Hello Number 2
- Hello Number 3
- Hello Number 4
Goodbye Numbers
- Goodbye Number 1
- Goodbye Number 2
- Goodbye Number 3
- Goodbye Number 4
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
