반응형
JavaScript is synchronous
Execute the code block by orger after hoisting
hoisting: var, function declaration
Synchronous callback
동기적
function printTestA(print) {
print();
}
Asynchronous callback
비동기적
function printTestB(print, timeout) {
setTimeout(print, timeout);
}
콜백 지옥에 빠질수 있으니 조심할것
콜백지옥
단점1.가독성 떨어진다
단점.2 디버깅,문제분석이 어려움
반응형
'프로그래밍 공부(JS)' 카테고리의 다른 글
노마드 코더의 강의 개발자에게 추천 (1) | 2020.11.21 |
---|---|
처음이라도 쉽게 디자인 할수 있는 미리캔버스 사용법 (1) | 2020.10.18 |
JavaScript await & async (0) | 2020.09.30 |
JavaScript Promise (0) | 2020.09.29 |
JavaScript Json(1일차 공부정리) (0) | 2020.09.24 |