inflearn logo
Course

Course

Instructor

ihayeon0108782's Posts

ihayeon0108782 ihayeon0108782

@ihayeon0108782

Reviews Written
2
Average Rating
5.0

Posts 1

Q&A

섹션1-8 일곱난쟁이 문제 질문

안녕하세요 강사님 break말고 바로 return 해도 되나요? function solution(arr){ const answer = arr; // 얕은 복사(메모상에 같은 주소를 가리킴).arr이 바뀌면 answer도 바뀌는 것 처럼 보임 const sum = answer.reduce((acc, v)=>{ return acc + v; },0) for(let i=0; i

Likes
0
Comments
4
Viewcount
668