What does Matthew 4:2 mean?

Matthew 4:2 KJV
And when he had fasted forty days and forty nights, he was afterward an hundred.

Matthew 4:2 NKJV
And when He had fasted forty days and forty nights, afterward He was hungry.

Matthew 4:2 MKJV
And when He had fasted forty days and forty nights, He was afterwards hungry.

Matthew 4:2 KJV 2000
And when he had fasted forty days and forty nights, he was afterward hungry.

Interlinear KJV

And /kai/ when he had fasted /nesteuo/ forty /tessarakonta/ days /hemera/ and /kai/ forty /tessarakonta/ nights, /nux/ he was afterward /husteron/ an hungred. /peinao/

Albert Barnes’ Commentary

Verse 2. Had fasted. Abstained from food.

Forty days and forty nights. It has been questioned by some whether Christ abstained wholly from food, or only from bread and the food to which he was accustomed. Luke says, (Lu 4:2,) that he ate nothing. This settles the question. Mark says, Mr 1:13, that angels came and ministered unto him. At first view, this would seem to imply that he did eat during that time. But Mark does not mention the time when the angels performed the office of kindness; and we are at liberty to suppose that he meant to say that it was done at the close of the forty days; and the rather as Matthew, after giving an account of the temptation, says the same thing, Mr 4:2. There are other instances of persons fasting forty days, recorded in the Scriptures. Thus Moses fasted forty days, Ex 34:28. Elijah also fasted the same length of time, 1Ki 19:8. In these cases, they were no doubt miraculously supported.