In the United States, the president is not elected directly, but indirectly, by indirect election. In fact, the president is not elected on election day, but a college that elects him or her some time later.
This electoral college consists of 538 electors, so if a presidential candidate manages to win 270 electoral votes, he can be expected to become president of the United States.
It is possible that the presidential candidate with the most votes nationwide will not win the election. Because of the winner takes all system by state, this can happen especially if he wins by a large margin in many states where he wins, and in many states where he loses by a small margin. In addition, this can happen if he loses mainly in states with many electoral votes in proportion to the number of inhabitants.
Learn more about the Electoral College in https://brainly.com/question/1042279