Which board are you using? It depends a bit on the chip you have on it.
However one thing you can pretty much always do is pinMode(pin,"input_pullup")which turns on an internal ~40k pullup resistor, so will light the LED very dimly. You'll need to use "output" to use the LED for anything else though.
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.
Which board are you using? It depends a bit on the chip you have on it.
However one thing you can pretty much always do is
pinMode(pin,"input_pullup")
which turns on an internal ~40k pullup resistor, so will light the LED very dimly. You'll need to use"output"
to use the LED for anything else though.