Former Arkansas Gov. Mike Huckabee said Democrats are melting down and acting irrational over the fact that President Donald Trump will nominate a second Supreme Court justice.

Justice Anthony Kennedy, long seen as a swing vote on the high court, announced this week that he is retiring at the end of July.

"Let me quote a famous politician, Barack Obama, who said 'elections have consequences,'" Huckabee said on "America's Newsroom." "They certainly do. We elect a president, he picks Supreme Court justices. It's the way it works."

So glad @realDonaldTrump will appoint next SCOTUS Justice but it’s causing Dems to melt faster than Wicked Witch of West at a water park. — Gov. Mike Huckabee (@GovMikeHuckabee) June 29, 2018

Michael Moore: We Have to 'Put Our Bodies on the Line' to Stop Trump

GOP Candidate Says Country Club Cancelled Her Event Because of Her Support for Trump

Huckabee said Democrats will be unhappy no matter who Trump nominates.

"If he put Moses up for the possibility of being Supreme Court Justice - the ultimate lawgiver, the Ten Commandments - they would still be against it," Huckabee said.

.@GovMikeHuckabee: "If he put Moses up for the possibility of being Supreme Court Justice - the ultimate lawgiver, the Ten Commandments - [@TheDemocrats] would still be against it." pic.twitter.com/DBLfInSYak — Fox News (@FoxNews) June 29, 2018

He lamented that the court has become ideological, saying it should not be seen as conservative or liberal, but constitutional.

"The pick ought to be somebody who has great respect for the actual words of the Constitution, what they meant when they were written. And, until they're changed, follow them," Huckabee said.

He said the problem for the past 40 or 50 years is that Supreme Court justices wanted to legislate.

"If you want to be a legislator, run for Congress. If you want to be Supreme Court justice, look at the letter of the law and interpret it, but don’t make it up."

Tomi Lahren: The 'Loving and Tolerant Left Is Anything But' That

Co-Chair of Women for Trump Receives Death Threats After CNN Appearance

Cruz: 'Good Possibility' Hillary Would Have Won If Scalia Had Not Died Before Election

Hannity Rips 'Never-Trumpers' as Second SCOTUS Spot Opens