system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How did fighting WWII bring the US out of the Depression?

If anything I would think of all that money on weapons would be a waste.
gpt
During WWII, millions of people (almost all men) were drafted and fought in the war. Because of this, unemployment was basically non-existent and all types of people were hired (women, various races, teenagers, etc.) This also caused wages to rise dramatically(from competition), which caused the economic gap between classes to shrink. Later on in the war when fighting became more intense, several allied countries (mainly Britain) bought ridiculous amounts of war supplies from the US, pushing up production even further. Even when the US joined the war, the economy was sky rocketing.

After the war ended, Europe needed to rebuild, which of course allowed even more products to be produced in the US to be sold. Several European countries also owed the US millions of dollars in debt, which helped even more. Of course there were other factors like FDR's New Deal, but WWII played a huge part in how the US got out of the Great Depression.