Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- node 설치
- nvm 설치
- 2번째 페어
- testbuilder
- for in
- dot notation
- 스프린트 리뷰
- npm 설치
- 코드스테이츠 1일차
- JavaScript Runtime
- local scope
- Jest
- for of
- Splice
- indexof
- package.json
- immutable
- TIL
- 코플릿
- 슈도코드
- supertest
- 호이스팅
- HTML 태그 모음
- javascript 기초
- foreach
- global scope
- 코딩게임
- Bracket Notation
- version control system
- includes
Archives
- Today
- Total
목록immutable (1)
Honey-Programming

1.immutable : 자료형 String(문자열), Number(숫자), Boolean(참/거짓), undefined, null은 immutable(변경불가능한) 객체 2. mutable : Function(함수), Array(배열), Object(객체)은 mutable(변경가능한) 객체 이 외에 immutable 하지 않은 모든 것들을 포함 3. immutable 객체의 메모리 참조 let num1 = 0; let num2 = num1; num1 = 100; console.log(num1); // 100 console.log(num2); // 0 num1 = 100에서 immutable 영역의 0이 변경되지 않고 100이라는 값이 새로 할당됨 아래에서 나올 mutable 객체의 값이 변경(obj1...
JAVASCRIPT
2020. 7. 21. 14:01