Help with conversion
This is what I have so far, the directions state "Create a page in which you have a form that asks the user to enter an amount in meters. When they click the button, your form should retrieve that value and convert it into feet. The conversion is 1 meter = 3.28 feet. Have variables to store each (feet and meters). Then output (in an alert box), the result in feet." So basically I can't figure out how to ask user to input X amount and then include that in the function.
<title>Meters to feet conversion</title>
amountOfMeters = prompt("Give me a number.", "");
total = (amountOfMeters * 3.28);
<h1>Convert meters to feet</h1>
<input type="button" value="Convert meters to feet"
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)