Most scholars believe Jesus fasted during the entire 40 days and 40 nights.
Satan tried to convince Jesus to sin.