What is the significance of the Israelites wandering in the desert for 40 years?

They were punished one year for every day the spies were spying out the land
They began their journey when Moses was 40 years old
Forty years represented the 40 decades until the coming of the Messiah
Moses had been gone for 40 days on Mt. Sinai when they built the golden calf