Mindy Kaling

Mindy Kaling arrives at the 16th Costume Designer Guild Awards, on Saturday, Feb. 22, 2014, in Beverly Hills, Calif. (Photo by Jordan Strauss/Invision/AP)

Cambridge-native Mindy Kaling returned to her hometown on Wednesday gave a commencement address at the 2014 Harvard Law School Class Day.

During her 17-minute speech at the student-recognition ceremony, she shared advice to the soon-to-be lawyers and poked fun at herself, her alma mater and even the students she addressed.

Of Dartmouth, where Kaling graduated in 2001 with a bachelor's degree in playwriting, she said:

Kaling added that she prepared for her speech "like any good Dartmouth-educated student would."

In her so-called backup plan speech, Kaling teased the graduates:

Though she jokingly deplored their future careers, she said the law school is the best program at the university. "Let's be honest - Harvard Law is the best of all the Harvard graduate programs.

Watch the full speech below.