Question: using this code: Miles Per Gallon Calculator The Miles Per Gallon Calculator use strict; // get miles driven from user const miles = parseInt(prompt(Enter miles
using this code:
The Miles Per Gallon Calculator
-
Modify the application 4. Modify the JavaScript so it accepts and displays decimal values for the miles and gallons. Then, reload the file in the browser to run the application again, enter decimal values with two or more decimal places, and note the result.
& then
-
Modify the JavaScript so all of the values are rounded to two decimal places. Then, run the application one more time and note the result.
Step by Step Solution
There are 3 Steps involved in it
To address the modifications requested for the JavaScript portion of the given HTML code the focus w... View full answer
Get step-by-step solutions from verified subject matter experts
