Calculate average from an array of numbers using javascript

console.log("Calculate average from an array of numbers: ");
 const calculateAverage = (arr) =>
 {
     let average = 0;
     for(let i = 0; i < arr.length; i++) {
         average +=arr[i];
     }
     return Math.ceil(average / arr.length);
 }
 console.log(calculateAverage([4, 6, 7, 29, 56, 23])); //21
 console.log(calculateAverage([4, 6, 8])); // 6