(프로그래머스) 평균 구하기

유지원·2022년 5월 10일
0

프로그래머스

목록 보기
48/66

문제 링크

https://programmers.co.kr/learn/courses/30/lessons/12944?language=javascript


Javascript

function solution(arr) {
  return arr.reduce((a, b) => a + b) / arr.length;
}
profile
👋 https://github.com/ujw0712

0개의 댓글