How to explain callbacks in plain english? How are they different from calling one function from another function?

后端 未结 30 2053
时光说笑
时光说笑 2020-11-22 11:13

How to explain callbacks in plain English? How are they different from calling one function from another function taking some context from the calling function? How can thei

30条回答
  •  暖寄归人
    2020-11-22 11:24

    A callback is a self-addressed stamped envelope. When you call a function, that is like sending a letter. If you want that function to call another function you provide that information in the form of a reference or address.

提交回复
热议问题