Calculate Average


In this example I am calculating theAns and then returning it. Note I could have defined a var called theAvg here in the BODY script and then assigned theAns to theAvg and displayed theAvg.