The chairman of the Joint Chiefs of Staff is the nation’s highest-ranking military officer and the principal military advisor to the president, the secretary of defense and the National Security Council.