What is $digest and $apply in AngularJS?

$digest updates the bindings, while $apply triggers $digest and also allows execution of external functions inside Angular’s scope.