Facebook reported an 18 percent increase in first-quarter revenue Wednesday, but the social media giant said it wasn’t making financial predictions because of the uncertainty caused by the coronavirus and what is expected to be the greatest economic contraction since the Great Depression.

Facebook chief executive Mark Zuckerberg expressed concern about what lies ahead for the country. “While there are massive societal costs from the current shelter in place restrictions, I worry that reopening certain places too quickly, before infection rates have been reduced to very minimal levels, will almost guarantee future outbreaks and even worse economic outcomes,” he said. “I am very concerned that this health emergency and therefore the economic fallout will last longer than people are currently anticipating.”

The caution Zuckerberg urged stands in stark contrast to the stance of others who want to see the stay-at-home orders lifted as soon as possible. State officials in places such as Georgia have moved to reopen for business, even though the number of new infections remains high. Tesla CEO Elon Musk tweeted late Tuesday, “FREE AMERICA NOW.”

But for his business, Zuckerberg sees opportunities to grow. On a call with analysts, he said he believes that times of economic downturn are a time to invest.

“During a period like this, there are a lot of new things that need to get built,” he added. “I think it’s important that, rather than slamming on the brakes now, as a lot of companies may, it is important to keep building for the new needs people have and … make up for the stuff that other companies will pull back.”

He noted that Facebook had just launched a videoconference app, Messenger Rooms, that would be a competitor to Houseparty and Zoom. Zuckerberg said the company expects to lose profit in the year ahead but emphasized the social network’s strength. Executives have announced that Facebook will hire 10,000 workers this year, a potential strategic advantage to poach the best talent as smaller tech firms lay workers off.

At a moment when other companies are facing huge layoffs and declining revenue because of the pandemic, Facebook’s revenue growth is notable and was cause for optimism on Wall Street.

The company’s first-quarter revenue was $17.7 billion, up from $15.1 billion the same quarter a year ago. That was slightly more than analyst expectations, presenting a rosier picture than many traditional companies that are gearing up for the prolonged crisis. The company’s profit doubled to $4.9 billion from the previous year.

Facebook’s stock price shot up 10 percent in after-hours trading.

However, Facebook is not immune to the current crisis. The company said it expects profit to fall this year and would not make its usual second-quarter predictions because of uncertainty.

Though the company was not making specific predictions, executives noted that ad revenue was flat in April, a sign that the advertising industry would be significantly hit. Those numbers will be captured in second-quarter earnings.

“The effects of the pandemic didn’t hit most of the world until mid-March, and that was reflected in Facebook’s earnings report,” eMarketer principal analyst Debra Aho Williamson said in an emailed statement. But the flat April revenue indicates that the next quarter will be “much more challenging” than the current one.

The company also said that prices for its ads have fallen because of lower demand and that it did not expect engagement with some of its services to remain at the same levels as during the lockdowns.

“There is a strong evidence in the numbers that Facebook ad revenues aren’t receiving the big hits many expected from the covid-19 shock,” said Haris Anwar, senior analyst at the financial markets platform investing.com, who said he thought the business would quickly recover from ad revenue losses. Facebook’s “stock is well-positioned to outperform its peers,” he added.

Many of Facebook’s 2.89 billion users have been quarantined at home around the world and are using the company’s services — which include Instagram and WhatsApp — more than ever. In Italy, which was early to enter lockdown, viewership on the company’s streaming services doubled in a week, the company has said. Calling for Messenger and WhatsApp more than doubled year over year in many countries that instituted lockdowns. Group video calling has increased more than 1,000 percent since March.

That’s welcome news for a company that has seen the number of new users plateau and a significant reduction in the amount of time those users spend with the company’s services in recent years.

In general, Facebook and its fellow tech giants are in a better position to withstand the coming recession. The company’s market capitalization is $553 billion, making it one of the most valuable and cash-rich companies in the world.

Tech giants are profiting — and getting more powerful — even as the global economy tanks

Google parent company Alphabet‘s stock was up nearly 10 percent Wednesday after the company’s positive earnings report. But it warned that advertising experienced a significant decline starting in mid-March. Microsoft also beat analyst expectations as the coronavirus drove demand from businesses for its cloud infrastructure.

Correction: An earlier version of this story incorrectly stated that Facebook had $553 billion in cash reserves. That is the company’s market capitalization.