So the proof is as follows:
For a contradiction, suppose that $\sqrt{2} = \dfrac{m}{n}$ is a ratio of integers. Squaring both sides and cross-multiplying gives $2n^{2} = m^{2}$. Note that 2 divides the left-hand side an odd number of times while 2 divides the right-hand side an even number of times. Thus we have an odd number equal to an even number, a contradiction.
I'm not quite sure how 2 divides the left-hand side an odd number of times and divides the right-hand side an even number of times. Can someone explain this please? I feel like its obvious, but I just can't wrap my head around it.