Stocks posted sharp weekly losses on Friday after a strong downturn in technology shares.

The fell 1.6 percent this week, while the Dow Jones Industrial Average and Nasdaq Composite both declined more than 2 percent.