In the challenge it is asking to return the average of numbers but the parameter is a number , singular number. Am I missing something or it the challenge missing something because average is
adding all the numbers in a data set together, then dividing that total by the total count of numbers in the set.
My code
function square(num: number) {
return num * num;
}
const result = square(5);
console.log(result);
function getAverage(arr){
return typeof arr
}
console.log(getAverage(1));