Stocks posted their second consecutive weekly rise on Friday as investor sentiment was boosted by better-than-expected jobs data and progress on the U.S.-China trade front.

The and Dow Jones Industrial Average both climbed about 2% this week, while the Nasdaq Composite surged 2.7%. On Friday, the S&P 500 and Nasdaq closed higher by 0.5% and 0.6%, respectively, while the Dow climbed 40.36 points.