How does the Electoral Vote Work?

The electoral vote is determined by what candidate wins a state. Each state has electoral votes determined by their population. The electoral votes are counted and the winner is determined.