U.S. stocks had a mixed performance at the close on Friday, as investors caught their breath after a weeks-long rally supported by data that bolstered expectations for interest rate cuts by the Federal Reserve this year. The S&P 500 index rose after trimming losses, while the Nasdaq index declined, but both posted gains for the fourth consecutive week. The Dow Jones index recorded its fifth consecutive weekly gain. According to market data, the S&P 500 closed up 0.12% at 5,303.27 points, the Nasdaq Composite fell 0.07% to 16,685.97 points, and the Dow Jones Industrial increased by 0.34% to 40,003.88 points, marking the first time it has surpassed the 40,000 point level.