Braff joked that he starred as J.D.

on “Scrubs” so that he didn’t have to eat 7-Eleven hot dogs anymore.

The2024 Emmyspaged some of television’s greatest doctors to present on Sunday.

Mekhi Phifer, Mindy Kaling, and Zach Braff speak onstage during the 76th Primetime Emmy Awards at Peacock Theater on September 15, 2024

Mekhi Phifer, Mindy Kaling, and Zach Braff at the 2024 Emmys.Kevin Winter/Getty

‘sMekhi Phiferall took to the stage to reflect on what inspired them to play physicians onscreen.

What about you, Zach?"

Kevin Winter/Getty

Braff’s reasons were a bit more… based on survival.

“I was waiting tables and serving the universally gracious people of Beverly Hills,” he said.

I was inspired to not live like that anymore."

To which Kaling teasingly replied, “And I can see that in every scene you’re in.”

Braff, of course, starred as the well-meaning daydreamer J.D.

on the sitcomScrubsalongside Donald Faison, Sarah Chalke, John C. McGinley, and more from 2001 until 2010.

The comment, which drew laughs, was a reference to Will Smithinfamously slapping Chris Rockat the 2022 Oscars.

Check out the full list ofEmmy winners.