0

I don't understand the books explanation for why a 10k resistor is needed for an open switch to write LOW to a digital pin. I thought no voltage is LOW anyway. Can someone explain in a little more detail why this resistor is needed.

enter image description here

enter image description here