일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 부가데이터
- string
- 생명주기
- html
- querySelector
- 안드로이드
- 프래그먼트
- 230508
- javascript
- textContent
- 230510
- serializable
- parcelable
- ViewPager
- 함수 인자
- Flutter
- DFS
- Class
- 데이터 타입
- 230503
- ActionBar
- C++
- intent
- putextra
- DOMContentLoaded
- Adapter
- null-safety
- 인텐트
- fragment
- classList
- Today
- Total
목록array (2)
나만의 개발노트
forEach() : 주어진 callback함수를 배열에 있는 각 요소에 대해 오름차순으로 한 번씩 실행한다. arr.forEach(callback(currentvalue[, index[, array]])[, thisArg]) - callback : 각 요소에 대해 실행할 함수 - currentvalue(명명된 매개변수) : 처리할 현재 요소 - index(선택적 매개변수) : 처리할 현재 요소의 인덱스 - array(선택적 매개변수) : forEach()를 호출한 배열 - thisArg : callback을 실행할 때 this로 사용할 값. //전달되지 않으면 undefined사용 1. currentvalue만 사용 const numbers = [1,2,3,4,5]; numbers.forEach(fun..
arrays(배열) : 단일 변수 이름 아래에 여러 항목 모음을 저장할 수 있는 개체 크기 조정이 가능하고, 다양한 데이터 유형을 혼합하여 포함할 수 있다. 연관 배열이 아니므로, array elements cannot be accessed using arbitrary strings as indexes, but must be accessed using nonnegative integers (or their respective string form) as indexes.(이해X) 인덱스는 0부터 시작한다. (첫 요소의 index는 0,두번째 요소의 index는 1 ... 마지막 요소는 array's length -1) 배열을 복사하면, 얕은 복사가 된다.(이해X) (참조) https://developer...