How do Christians fast?

Sahara • fervent lover of sciences (both religious and worldly)

Jesus is said to have been fasting in the desert for 40 days. As a Muslim, I fast 30 days every year, but I wonder how christians fast, since there doesn't seem to be a clear opinion on what it means? One said: it's eating only bread and drinking water. Another said: it's staying away from candy and unhealthy food.

So how do you fast and do you think this is how Jesus used to fast? Just curious about the answers… thank you