Like many sitcoms, Scrubs had a great many directors during its run, but Zach Braff is among one of its most prominent. As well as leading the Scrubs cast as the head-in-the-clouds Dr. John "JD" Dorian, Braff also stepped behind the camera to direct seven episodes. Since Scrubs, Braff has been in the director's chair for other sitcoms like Ted Lasso and Shrinking, but also his own movie projects, such as 2023's A Good Person. Braff's Scrubs episodes sit well among the rest of the show due to his understanding of Scrubs' aesthetic.
https://screenrant.com/scrubs-episodes-zach-braff-director-ranked/