The GoodAdd

<script>
//GoodAdd
//Demonstrates eval function
//Ryan Chen, 09/07

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;
var total = meal + tip;

alert ("the meal is $" + meal);
alert ("the tip is $" + total);
alert ("Total bill: $" + total);
</script>