Julia Louis-Dreyfus returned to "Saturday Night Live" last night for the third time as a host and welcomed musical guest Nick Jonas.

While the signer was at "Saturday Night Live" to perform two songs, " "Champagne Problems" and "Close," he also appeared in a sketch alongside Louis-Dreyfus called "Pool Boy." In the sketch, the comedian played a married woman who was having a love affair with her pool boy, played by "Saturday Night Live" cast member Pete Davidson. Louis-Dreyfus in the video decided that it was time to end her affair with the young pool boy because if news of her cheating got out, it would "ruin" her family.

"No, Chad, we can't do this anymore," she said in the skit. "I couldn't sleep last night. What am I doing? Am I a bored housewife who's having an affair with her 23-year-old pool boy?"

Just as Louis-Dreyfus broke off her affair with the pool boy, Jonas appeared in her yard and wore a tank top that perfectly showed off all his muscles. As Jonas mowed her lawn, Louis-Dreyfus exclaimed, "I'm going to f--k that kid."

While Saturday's episode marked the third time that Louis-Dreyfus hosted the show, the comedian used to be a cast member when she was only 21 years old in 1982. "Saturday Night Live" was the place where the comedian met the future creator and writer of "Seinfeld," Larry David, who worked as a writer on the show. Last week, the 55-year-old opened up about what it was like working at the late night sketch show in the 1980s and mentioned that it was a very "sexist environment."

"I did not come out of 'SNL' as any kind of name. I didn't do anything particularly great when I was there," she explained. "But I learned a tremendous amount. It was a very sexist environment. Since I've gone back, I can tell you it's much more of an equal-opportunity environment."

While the actress went on to have a very successful career after "Saturday Night Live," she said that she also took her experience there as a learning experience.

"I was on ['SNL'] for three years, and when I left, I made this conscious decision that I would not take any jobs that didn't seem as if they would be really fun," she said. "That's very simplistic and Pollyannaish sounding, but really, I noted that. I'm not doing this unless I can have a deep sense of happiness while doing it. I've applied that, moving forward, and it's worked. So in that sense, I have 'SNL' to thank."