일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- c++
- BFS
- 다익스트라
- tensorflow
- 문자열
- 회고록
- pytorch
- 백트래킹
- back propagation
- 너비 우선 탐색
- 가끔은_말로
- Overfitting
- 플로이드 와샬
- DP
- dropout
- lazy propagation
- 알고리즘
- 자바스크립트
- 가끔은 말로
- dfs
- object detection
- 이분 탐색
- 분할 정복
- NEXT
- 세그먼트 트리
- 조합론
- 크루스칼
- 2023
- 우선 순위 큐
- 미래는_현재와_과거로
Archives
- Today
- Total
목록first-class function (1)
Doby's Lab

자바스크립트 공부를 하다가 내 눈에는 이상한 점을 발견하여 포스팅을 하게 되었다. const print = function () { console.log('print'); }; print(); 다음 코드를 실행하면 아무 문제없을 것이다. 허나, print(); const print = function () { console.log('print'); }; 이 코드는 문제를 일으킨다. [Uncaught ReferenceError: Cannot access 'print' before initialization] 해당 코드가 자바스크립트 엔진에서 돌아가는 원리는 다음과 같다. //const는 재할당할 수 없지만 엔진의 설명을 위해 const print; //print라는 변수에 아무 것도 선언되지 않았다. pr..
카테고리 없음
2021. 7. 25. 14:22