Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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