Quantiphi interview question

Explain the concept of callback in JavaScript