Gas Mileage Calculator

 

 

 

 

 

 

 

 

Objective:

Create an app that calculates the miles of gallon used with functionality to toggle between metric and imperial.

Problem:

How do we make the app buttonless so the user could see the miles per gallon without clicking a button?

Solution:

We will use the on change function in JavaScript to detect if the MPG calculator form changes.