Magnatec Systems interview question

Difference between callbacks and promises