Wall Street's main indexes ended higher on Friday and posted weekly gains as investors returned from the Thanksgiving holiday and flocked to hard-hit AI-linked shares. U.S. stocks have swung sharply this week, with Jensen Huang's return as Nvidia CEO and Anthropic's brief fall below its initial public offering price adding to volatility across the AI trade. Investors have alternated between bargain-hunting after a steep selloff and fretting over soaring AI costs, heavy borrowing and doubts about companies' returns on investment. "The market is so oversold that a bounce was inevitable," said Jamie Cox, managing partner at Harris Financial Group. Chipmakers that investors battered this month recovered ground, with Micron and Marvell each gaining. The broader chip gauge also climbed. The Dow Jones Industrial Average rose 597.69 points, or 1.19 percent, to 50,780.64, the S&P 500 gained 115.56 points, or 1.61 percent, to 7,298.34 and the Nasdaq Composite gained 543.70 points, or 2.31 percent, to 24,129.50. AI beneficiaries, including data-storage firm Sandisk , optical-products maker Lumentum a