Geotab interview question

what is difference between method and function