All food used to come from those growing periods. I think you grew certain kinds of tubers that could be stored over winter in a root cellar or made into preserves.
Preservation is largely unnecessary. If a garden provides say 1 month of food for a family, then that family buys less food for that month. Being self sufficient was possible, but takes significant labor and land.
Large scale agriculture was already set up to do long term preservation. People normally eat storable foods every month. Bread for example generally does not last long, but itβs made from grains that could have been harvested 2+ years ago. Modern preservation methods can push that to 10+ years at minor cost.
That said, canning and other food storage was common. It was simply not a major focus of victory gardens. Otherwise the focus would have been on potatoes and other easily preserved foods not vegetables.
If you look at the picture on Wikipedia, potatoes and onions and carrots are prominent: https://en.m.wikipedia.org/wiki/Victory_garden
That said I don't know the answer and I'd be curious what they did in winter in wartime.