[기본미션]
- 파괴적 처리: 원본을 파괴하는 처리
const ar = [2, 1]
ar.sort() // ar = [1, 2]
- 비파과적 처리: 원본을 유지하는 처리
const ar = [2, 1]
const a2 = [...ar] // ar = [2, 1]
[학습내용] chapter 04
반복문
// Array loop
for (const i in arr)
for (const x of arr)
for (const [i, x] of arr.entries())
// Object loop
for (const key in obj)
for (const [k, v] of Object.entries(obj))
week3 https://big-mango.tistory.com/152
week2 https://big-mango.tistory.com/149
week1 https://big-mango.tistory.com/146
'혼공' 카테고리의 다른 글
week3-python (0) | 2023.07.23 |
---|---|
week3-java (0) | 2023.07.23 |
week2-python (0) | 2023.07.16 |
week2-java (0) | 2023.07.15 |
week2-javascript (0) | 2023.07.13 |