Mark As Completed Discussion

A callback is a function that is passed to another function as an argument. It is then executed after some operation has been completed. The following is an example of a simple callback function that logs to the console after some operations have been completed.

Source

https://coderbyte.com/algorithm/10-common-javascript-interview-questions

JAVASCRIPT
OUTPUT
:001 > Cmd/Ctrl-Enter to run, Cmd/Ctrl-/ to comment