Question: In Javascript Write down the codes to allow you to enter a number using a prompt. Then, the app will prompt you to enter that
In Javascript Write down the codes to allow you to enter a number using a prompt. Then, the app will prompt you to enter that many numbers. Afterward, the app will calculate and display the sum. That is, you will need to use a loop to do so.
For example, if you first enter a 5, you will be prompted to enter five additional numbers. For these numbers, you input the following numbers:
- 5
- 3
- 6
- 8
- 10
Afterwards, you will see the sum as 24, which is the sum of all five numbers (5+3+6+8+10 = 24).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
