문제
프로그래머스
코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.
programmers.co.kr
정답
function solution(numbers) {
let num = Array(10)
.fill(0)
.map((a, b) => a + b);
let answer = num.filter(x => numbers.includes(x) === false);
return answer.reduce((a, b) => a + b);
}
function solution(numbers) {
return 45 - numbers.reduce((a, b) => a + b);
}