How Do I Find The Average Of Three Numbers Using Javascript?


2 Answers

Braeden Petruk Profile
Braeden Petruk answered
<script type="text/javascript" language="javascript">
var numOne;
var numTwo;
var numThree;
var total;
var avg;

total = numOne + numTwo + numThree;
avg = total / 3;
Anonymous Profile
Anonymous answered
How do you find the average from a list of radio buttons ( my assigment gives me 5 fields and each one has 4 different radio buttons  - each with a value from 1 to 4 were 1 is bad and 5 is excelent)

when I go to submit the form it should provide the average score ?

Answer Question