JavaScript Callback Function
JavaScript callback()
A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.
Example1
Output
After typing the text and click ok
Example2
Output