Question: Create a simple interactive app. a ) ( 5 pts ) Add code to the app to ask the user for a number via a

Create a simple interactive app.
a)(5 pts) Add code to the app to ask the user for a number via a prompt call. The number should be displayed on a tag on the corresponding web page with a prefix of Quantity. For example, if 80 is entered, then you should see this on the web page
Quantity: 80
b)(15 pts ) Extend the app to ask the user to enter a percentage amount. The app should compute this percentage of the number entered, and output the result to the web page using a formatted string - with the percentage figure, the quantity and the result. For example, if 50 is entered as the percentage amount, then you should see this on the web page,
Quantity: 80
50% of Quantity, 80, is 40
You should use a template literal to format the output string.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!