Major U.S. stock indexes finished higher Thursday after a late burst of buying led by technology and financial companies reversed an early slide.

News of a spike in the number of confirmed cases and fatalities from a virus outbreak in China put investors in a selling mood for most of the day, overshadowing a batch of mostly solid company earnings reports.

Traders have been worried that the outbreak could end up dampening global economic growth. But those concerns appeared to ease by late afternoon, after the director general of the World Health Organization said that the organization was not recommending limiting travel or trade to China.

“There is no reason for measures that unnecessarily interfere with international travel and trade,” Tedros Adhanom Ghebreyesus told reporters in Geneva after the WHO officially declared the outbreak a global emergency.

Amazon reported its quarterly results at the close of regular trading. The company's earnings and revenue blew past Wall Street's expectations, sending its shares sharply higher in extended trading.

The S&P 500 index rose 10.3%, to 3,283.66. The index had been down 0.9% earlier in the day.

The Dow Jones Industrial Average climbed 124.99 points, or 0.4%, to 28,859.44. The Nasdaq added 0.3%, to 9,298.93.

Smaller company stocks recovered most of the way after taking the brunt of the selling. The Russell 2000 index slipped 0.1%, to 1,648.22. -- AP

Get the latest news and more great videos at NewsdayTV Credit: Newsday

When Springsteen brought 'Santa' to LI ... 100th birthday for Purple Heart, Bronze Star recipient ... Get the latest news and more great videos at NewsdayTV

Get the latest news and more great videos at NewsdayTV Credit: Newsday

When Springsteen brought 'Santa' to LI ... 100th birthday for Purple Heart, Bronze Star recipient ... Get the latest news and more great videos at NewsdayTV

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME