MIAMI, FL - FEBRUARY 19:  Walmart employee Yurdin Velazquez pushes grocery carts at a Walmart store on February 19, 2015 in Miami, Florida.  The Walmart company announced Thursday that it will raise the wages of its store employees to $10 per hour by next February, bringing pay hikes to an estimated 500,000 workers. (Photo by Joe Raedle/Getty Images)
Joe Raedle/Getty Images
MIAMI, FL - FEBRUARY 19: Walmart employee Yurdin Velazquez pushes grocery carts at a Walmart store on February 19, 2015 in Miami, Florida. The Walmart company announced Thursday that it will raise the wages of its store employees to $10 per hour by next February, bringing pay hikes to an estimated 500,000 workers. (Photo by Joe Raedle/Getty Images)
Now playing
01:34
Walmart earnings beat estimates in second quarter
Now playing
04:56
How these startups are tackling high drug costs in the US
WASHINGTON, DC - MARCH 09: Elon Musk, founder and chief engineer of SpaceX speaks at the 2020 Satellite Conference and Exhibition March 9, 2020 in Washington, DC. Musk answered a range of questions relating to SpaceX projects during his appearance at the conference. (Photo by Win McNamee/Getty Images)
Win McNamee/Getty Images
WASHINGTON, DC - MARCH 09: Elon Musk, founder and chief engineer of SpaceX speaks at the 2020 Satellite Conference and Exhibition March 9, 2020 in Washington, DC. Musk answered a range of questions relating to SpaceX projects during his appearance at the conference. (Photo by Win McNamee/Getty Images)
Now playing
04:19
Bitcoin and crypto's 'Elon Musk problem'
Now playing
02:29
'Outrageous' used car prices amid highest inflation in 13 years
jeff bezos blue origin space launch cooper intv sot vpx_00021804.png
jeff bezos blue origin space launch cooper intv sot vpx_00021804.png
Now playing
03:05
Jeff Bezos reveals most surprising part of space mission
CNN
Now playing
03:05
These moms explain how child tax credit checks will help them
CNN/John General/Atom Smasher
Now playing
04:04
Here's everything you need to know about ransomware
Now playing
04:04
Subway CEO on menu changes: The one thing we did not touch is our tuna
Now playing
02:40
Gretchen Carlson tells Anderson about the bipartisan bill she's backing to help workers
Rachael Flores
Now playing
02:22
Employees go viral after resigning via Burger King sign
Virgin Galactic
Now playing
02:05
Richard Branson lands safely after rocketing to outer space
CNN/Shutterstock
Now playing
02:20
Prices are going up on almost everything. Here's why
A car drives by a Speedway gas station next to the Shell refinery on March 03, 2021 in Martinez, California. Gas prices have increased across the United States to a national average of $2.72 per gallon, an increase of 30 cents from one month ago. Gas in California has an average price of $3.68 per gallon, the highest in the nation.  (Photo by Justin Sullivan/Getty Images)
Justin Sullivan/Getty Images
A car drives by a Speedway gas station next to the Shell refinery on March 03, 2021 in Martinez, California. Gas prices have increased across the United States to a national average of $2.72 per gallon, an increase of 30 cents from one month ago. Gas in California has an average price of $3.68 per gallon, the highest in the nation. (Photo by Justin Sullivan/Getty Images)
Now playing
04:01
Gas prices are high. Here's why
Now playing
02:46
The US needs construction workers
BetterUp CEO Alexi Robichaux workplace mental health orig_00023111.png
BetterUp CEO Alexi Robichaux workplace mental health orig_00023111.png
Now playing
03:06
This CEO says leaders need to focus on mental health to boost productivity at work
A driver uses the Didi Chuxing ride-hailing app on his smartphone while driving along the street in Beijing on July 2, 2021. (Photo by Jade GAO / AFP) (Photo by JADE GAO/AFP via Getty Images)
Jade Gao/AFP/Getty Images
A driver uses the Didi Chuxing ride-hailing app on his smartphone while driving along the street in Beijing on July 2, 2021. (Photo by Jade GAO / AFP) (Photo by JADE GAO/AFP via Getty Images)
Now playing
02:13
Didi shares plummet after China bans it from app stores
New York CNN Business —  

Fresh off Wall Street’s worst day of the year, Walmart calmed investors worried the US economy could fall into a recession.

Walmart (WMT), a Dow stock and bellwether of consumer spending, said Thursday sales at its jumbo-size US stores increased 2.8% during its most recent quarter compared with the same period a year ago. Walmart (WMT) raised its guidance for the remainder of the year, signaling optimism about the strength of its business.

Shares of Walmart rose about 5% in early trading Thursday.

Walmart’s results and a jump in July retail sales released Thursday reassured jittery investors that consumers remain confident and are still spending money at stores.

“Our customers’ economic health remains solid and our competitive position is strong,” Walmart CFO Brett Biggs said in prepared comments Thursday.

Walmart has strengthened its hold on shoppers in stores and grown online sales in recent years as many rival retailers struggle to adapt to shopping changes. Walmart and big box retailers are gaining market share against slumping competitors like Macy’s (M) and JCPenney (JCP), which reported earnings below Wall Street’s forecasts this week.

Walmart has focused its investments on offering its low-and-middle income shopping base cheaper and more convenient ways to buy groceries, the bulk of its business. It has also poured money into sprucing up stores and raising wages for workers.

At the same time, it has redesigned its website and bought several high-end brands — including Bonobos and Modcloth — to draw wealthier shoppers. To compete against Amazon (AMZN), Walmart has expanded curbside grocery pickup from stores and introduced one-day shipping to 75% of US customers.

“Combining physical stores with digital options is the future of retail,” Cowen analyst Oliver Chen said in a note to clients Thursday. Walmart “shines here.”

Tariffs on goods from China are hitting retailers hard. But Walmart has less exposure than some of its rivals because two-thirds of its merchandise comes from the United States.

The United States currently imposes tariffs on $250 billion of US goods and Trump has threatened to put tariffs on the remaining Chinese imports before the end of the year. Consumers could be hit the hardest by that next round, which would tax smartphones, laptops, shoes and toys.

The Trump administration delayed those tariffs until December 15. Trump said the move was designed in part to avoid any pain for consumers heading into the holiday season.