Apple Inc. Chief Executive Tim Cook told employees that the outcome of the U.S. election won’t shake the company’s core beliefs in diversity and inclusiveness, as technology-industry executives reacted to Donald Trump’s surprise victory.

In a memo Wednesday, Mr. Cook didn’t mention by name Mr. Trump, who has taken shots at Apple over jobs and data privacy, or former Secretary of State Hillary Clinton, whom Mr. Cook backed in Tuesday’s election. Regardless of which candidate people supported, Mr. Cook said, “the only way to move forward is to move forward together.”

Mr. Cook didn’t address the divisive, bitter tone of the campaign. But he stressed Apple’s “North Star hasn’t changed,” and that the company embraces a diverse team of employees no matter “what they look like, where they come from, how they worship or who they love.”

Facebook Inc. Chief Executive Mark Zuckerberg posted a message on the social network Wednesday evening, referencing his 11-month-old daughter Maxima.

“Holding Max, I thought about all the work ahead of us to create the world we want for our children,” Mr. Zuckerberg wrote. “This work is bigger than any presidency and progress does not move in a straight line.”