GE Digital interview question

Why developers use callbacks in JavaScript?