github 전체코드
문제
N의 값이 주어질 때 1부터 N까지의 합을 출력
풀이 과정
const solutionA = (N) => { return (N * (N + 1)) / 2; }; const testA = solutionA(10); console.log(testA);
틀린 부분이 있거나 보충해야 할 내용이 있다면 댓글이나 DM(sungstonemin)으로 알려주시면 감사하겠습니다😄