|
<html>
<head> <title>GoodAdd</title> </head> <body> var meal; //get the cost of the meal from the user meal = prompt ("How much was the meal?"); //convert the value to a number meal = eval(meal); var tip = meal * .15 alert ("the meal is $" + meal); |