Question: what is the difference between before update and after update?
Answer: All the code written in the "before update" triggers, executes BEFORE that DML is committed to Salesforce Database. ... After update trigger generally works when you want to update any other object. for example if you want to create a new task on account insertion or update you can write logic for that.