Pergunta de entrevista da empresa Caret IT Solutions

What is difference between compute and onchange?