fasting ?

what’s the best fasting method to help lose weight. are 24 hour fasts healthy ?