Fasting is all about extending periods of no eating to maximize the benefits if eliminating blood glucose levels, activating fat burning mechanisms, and of course enjoying other hormonal and physiological benefits like increasing testosterone and HGH.
You can typically eat to satiation, or higher calorie meal(s) while fasting because your body will utilize (and deplete) available blood glucose levels rather than storing as fat because meals are far enough apart. Glycemic index of food will dictate level of insulin response and resulting BG level.
Tons of very educational videos on YouTube. Go check out Dr Fang. Some may call him one of the fathers of the modern fasting era.