Television host Whoopi Goldberg warned freshman Rep. Alexandria Ocasio-Cortez, D-N.Y., that she should learn her job as a congresswomen before she tells others what to do.

“You just got in there, and I know you’ve got lots of good ideas, but I would encourage you to sit still for a minute and learn the job, because there are people in that party who have been working their tails off for this country. They know a lot, and you could learn some stuff from them,” Goldberg said while co-hosting "The View." “Before you start pooping on people and what they’ve done, you’ve got to do something, too.”

Goldberg was reacting to Ocasio-Cortez’s "60 Minutes" interview, which aired Sunday, in which the newly sworn-in congresswoman explained her intentions to support Democratic primary candidates who seek to unseat incumbent Democrats.

“It’s absolutely risky. It requires risk to try something new, but also ... we know so much of what we’ve tried in the past hasn’t worked, either,” Ocasio-Cortez said.

Ocasio-Cortez won her primary in an upset against then-incumbent Rep. Joe Crowley. She was sworn in to the 116th Congress on Thursday.

Goldberg lauded other Democrats, like Rep. John Lewis, D-Ga., and Sen. Dianne Feinstein, D-Calif., who she said have done plenty for the Democratic Party.

“There are a whole bunch of people in the Democratic Party who have been busting their asses to make sure that women get what they need, people get what they need, children get what they need,” Goldberg said.