-
[JS] callback function공부 기록/프로그래밍 2020. 5. 13. 11:09728x90
https://www.dashingd3js.com/lessons/javascript-callback-functions
JavaScript Callback Functions | DashingD3js.com
This video covers JavaScript Callback Functions. Specifically, this video covers: a) Passing JavaScript Functions as Variables Revisited and b) JavaScript Callback Functions.
www.dashingd3js.com
- A JavaScript function is a block of code that will be executed when you call it
- Because JavaScript functions are first-class objects, you can pass functions to other functions as variables
- The method of passing in functions as parameters to other functions to use them inside is used in JavaScript libraries almost everywhere
- A JavaScript Callback Function is a function that is passed as a parameter to another JavaScript function, and the callback function is run inside of the function it was passed into
- JavaScript Callback Functions can be used synchronously or asynchronously
This method of passing in functions to other functions to use them inside is used in JavaScript libraries almost everywhere.
The common name for the function passed in is a callback function.
In computer programming, a callback is a piece of executable code that is passed as an argument to other code, which is expected to call back (execute) the argument at some convenient time.
The invocation may be immediate as in a synchronous callback or it might happen at later time, as in an asynchronous callback.
'공부 기록 > 프로그래밍' 카테고리의 다른 글
[생활코딩] PHP: 원리, 타입, 변수, URL 파라미터 (0) 2022.02.16 [생활코딩] PHP: 설치, 환경 설정 (0) 2022.02.15 [JAVA] 이벤트 처리에 필요한 메소드 이해하기 (0) 2020.04.22 [Git] 실무에 적용하기 (0) 2020.04.21 [html] '초보자를 위한 HTML & CSS 동작과 원리' 강의 정리 (0) 2020.02.25