Stocks end 2021 on a weak note, still notch big yearly gain

The New York Stock Exchange operates during normal business hours in the Financial District, Wednesday, Oct. 13, 2021, in New York. (AP Photo/John Minchillo, File)

Stocks capped a quiet day of trading with modest losses Friday, even as Wall Street closed the books on another banner year.