i\'m trying to make a function that calculates the avg for numbers given to it I tried this but it gives me NaN:
function average(...num) { let total =