Stocks rose sharply Thursday, with large parts of the market erasing Wednesday’s losses, as investors cheered a batch of strong earnings and data that showed the U.S. economy grew at a robust annual rate of 3.2 percent in the fourth quarter.

Investors also got a welcome respite from the recent turmoil in overseas markets, particularly in Turkey and Argentina.

The Standard & Poor’s 500 index rose 19.99 points, or 1.1 percent, to 1,794.19, with all 10 sectors of the index closing higher. That more than made up the 18.29 points the index lost Wednesday.

The Nasdaq composite jumped 71.70 points, or 1.8 percent, to 4,123.13, and the Dow Jones industrial average rose 109.82 points, or 0.7 percent, to 15,848.61.

Facebook jumped $7.55, or 14 percent, to $61.08. The social media company reported results late Wednesday that exceeded the expectations of financial analysts. Facebook’s adjusted profit was 31 cents per share, 4 cents better than forecast.

It wasn’t all good news out of the technology sector. Amazon.com sank in after-hours trading after releasing results that fell short of what investors were expecting. The stock of the online retailing pioneer dropped $35.47, or 9 percent, to $367.54.

In other earnings news, Visa rose $3.76, or 2 percent, to $220.88 after the company reported a 9 percent rise in first-quarter profits, beating expectations.

Investors also cheered news that the U.S. economy grew at a 3.2 percent annual rate in the final three months of 2013, a positive sign for the economy in 2014. Consumer spending, a major driver of the U.S. economy, picked up in the quarter.

More in Business

The owners of Boulder’s Sterling University Peaks apartments, who this summer were cited for illegally subdividing 92 bedrooms in the complex, have reached an agreement to settle the case for $410,000, the city announced Thursday.

A local union president slammed by Donald Trump on Twitter stood his ground Thursday, maintaining the president-elect gave false hope to hundreds of workers by inflating the number of jobs being saved at a Carrier Corp. factory in Indianapolis.

Fast forward to today, and Larkburger is celebrating its 10th anniversary, having grown from one restaurant in Edwards to 12 locations in the state amid increasingly fierce competition in the “better burger” world.