Write a program in JavaScript to accept three subjects and then find the sum and average
Answers
Answered by
12
Just iterate through the array, since your values are strings, they have to be converted to an integer first. And average is just the sum of values divided by the number of values.
Similar questions