Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
3회차 과제
📁
배열
배열 생성
배열 관련 함수
map()
push()
length
at()
pop()
shift()
기타 함수들
unshift(): 배열의 시작 부분에 요소 추가delete: 특정 인덱스 요소 삭제 (배열 길이 유지)concat(): 두 개 이상의 배열 합치기copyWithin(): 배열 내부 요소 복사하여 덮어쓰기flat(): 중첩 배열 평탄화splice(): 요소를 추가하거나 제거하거나 교체toSpliced(): 원본 유지, 일부 수정한 새로운 배열 반환slice(): 배열의 일부를 추출 (원본 유지)👥
객체
객체 생성
속성 접근
속성 추가 / 수정
속성 삭제
Object.keys()
객체의 키 목록을 배열로 반환
Object.values()
객체의 값 목록을 배열로 반환
Object.entries()
객체를 [키, 값] 쌍의 배열로 반환
Object.assign()
다른 객체의 속성을 병합
in 연산자
해당 속성이 객체에 있는지 확인
🛠️
함수
함수 선언
화살표 함수
콜백 함수
함수의 인자로 전달되는 함수어떤 작업이 끝난 다음에 실행될 함수를 정의
Async 함수
- 콜백함수와 마찬가지로 많은 작업이 일어 났을 때 유용하다.