Pregunta de entrevista de Caret IT Solutions

What is difference between compute and onchange?