Is fasting good?

I’ve been wanting to lose weight and I heard about fasting. But I heard that when you stop fasting you gain your weight back or even more than what you originally had? So I’m not sure if I should try it.
Is fasting good?
Post Opinion