LONDON — As Britain took stock on Friday of the stunning results of a snap election that wiped out the parliamentary majority of Prime Minister Theresa May and her governing Conservative Party, one narrative bubbled up to the surface: The youth had spoken.

The election results were fueled partly by a higher turnout rate among young British voters who had long been angry at the results of the referendum last year to leave the European Union, known as Brexit. That vote, overwhelmingly supported by older Britons, was seen by many younger people as a threat to their jobs, their ability to study abroad and their desire to travel freely across the bloc’s borders.

In other words, the vote by young Britons on Thursday had a whiff of payback.

“I was so angry about Brexit that I buried my head in a pillow and screamed,” said Louise Traynor, 24, a waitress in the southwestern district of Battersea in London, who had never voted before Thursday.

Shaking her head in frustration, Ms. Traynor said she had been angry at herself because she hadn’t bothered to vote the first time around. “I was stupid enough to think that the country had some sense,” she said.