U.S. equities edged higher on Friday as investors weighed tensions between the U.S. and North Korea heading into the weekend.
The S&P 500 gained 0.13 percent to end at 2,441.32 with information technology rising 0.75 percent to lead advancers. The index posted its second-worst weekly performance of the year. It fell 1.43 percent for the week, the most since the week of March 24.
The Dow Jones industrial average closed 14.31 points higher at 21,858.32 after briefly dipping into negatively territory, with Apple contributing the most gains. The Dow also closed out its second-worst weekly performance of the year.
The Nasdaq composite outperformed, rising 0.64 percent to 6,256.56 as large-cap tech stocks rebounded. The index posted its third-worst weekly performance of the year.
Stocks were coming off their worst session since May as tensions between the U.S. and North Korea linger.
In the latest developments between the two countries' war of words, President Donald Trump tweeted another stark warning to North Korea on Friday.
Military solutions are now fully in place,locked and loaded,should North Korea act unwisely. Hopefully Kim Jong Un will find another path!
The tweet came a day after Trump said his previous warning to North Korea that it would face "fire and fury" may not have been "tough enough."
"This is a very fluid environment. Typically you would see buyers coming in off a sell-off … you could see some buying on the dips," said Prudential Financial chief market strategist Quincy Krosby.
"We could see some zigging and zagging going into the weekend," Krosby said.