The tech-heavy Nasdaq gained 1.5% Friday to end the week at 13,787.92.
Once viewed as inevitable, a recession has still not officially materialized.
Apple shares fared even better than the Nasdaq in the first half of 2023, gaining 45%.

Apple CEO Tim Cook, right, reacts as a man shows him a Macintosh SE computer during the opening of Apple’s first retail store in India in April 2023.Punit Paranjpe/AFP via Getty Images
They had briefly touched the $3 trillion mark in January before China supply chain issues prompted a pullback.
The analyst has a $240 price target on Apple shares, the highest on Wall Street.
The news outlet said 68% of analysts recommend buying Apple stock.

Entertainment stocks, though they have rebounded somewhat from a poor fourth quarter, remain generally depressed.
Disney finished the first half essentially flat, while Warner Bros.
Discovery, Fox Corp. and Comcast managed gains of between 10% and 30% apiece.