Once again, talk to your doctor. Fasting dramatically changes the body chemistry.
Although traditional reduced-calorie diets are a science-based way to lose weight, intermittent fasting is a good alternative that studies suggest is just as beneficial.
Source: Are fasting diets effective and safe for losing weight?