I am trying to write a JavaScript program in the body of the page that repeatedly prompts the user to enter a “Test Score” between 0-100. Then when the user clicks cancel the program displays the average in an alert box?
@pavelkodauthorOct 31.2005 — #yes i know how to add the num up but how do i know what to divide them since i dont know how many numbers there are becasseu its up to the user
@KravvitzOct 31.2005 — #Each time the user enters a number, assign it to a new node in the array. When the user clicks cancel, there won't be a number, so you should add all of the numbers in the array together and then divide them by the length property of the array.