After Japan's surprise attack on Pearl Harbor, the United States entered World War II. A wave of patriotism swept the nation as Americans joined the military and supported the war effort. The economy shifted to a wartime footing, ending the Great Depression. However, early victories went to Japan as they took territories across the Pacific. By mid-1942, though losses mounted and hopes for a quick victory faded, the US began to turn the tide at battles like Coral Sea.