Callback:
When the function A is called the function B as a parameter, referred to as B, A callback
IIFE: calls from anonymous function
(function(){})()
Role: to prevent pollution of the global namespace
Hide achieve
Callback:
When the function A is called the function B as a parameter, referred to as B, A callback
IIFE: calls from anonymous function
(function(){})()
Role: to prevent pollution of the global namespace
Hide achieve