<script type="text/javascript" language="javascript">
total = numOne + numTwo + numThree;
var numOne;
var numTwo;
var numThree;
var total;
var avg;
total = numOne + numTwo + numThree;
avg = total / 3;
alert(avg);
alert(avg);
</script>