How does intermittent fasting help with weight loss and what are the benefits?

How does intermittent fasting help with weight loss and what are the benefits?