I am testing this basic button example from the Arduino tutorial page.
This circuit lets power flow to pin 2 when the button is pressed. When the button is not pressed, the power goes through the resistor to ground, but my question is: why would you even need the connection to ground?
Can't you have power flow from 5V to pin2 or just have NO connection at all when the button is not pressed?
