How can intermittent fasting help with losing weight effectively and safely?

How can intermittent fasting help with losing weight effectively and safely?