It's just the way things are I'm afraid - the digital inputs are relatively sensitive, so pretty much any external input can change them. Without the resistor, even touching 3.3v with one hand and C1 with the other hand will be enough to register a button press.
But without the resistor (even if the input held its last value) you'd only ever be able to turn the input on, not off. You'd need another button connected to GND for that :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It's just the way things are I'm afraid - the digital inputs are relatively sensitive, so pretty much any external input can change them. Without the resistor, even touching 3.3v with one hand and C1 with the other hand will be enough to register a button press.
But without the resistor (even if the input held its last value) you'd only ever be able to turn the input on, not off. You'd need another button connected to GND for that :)