Appendix B. Common Espruino Commands and Variables
What follows is a quick rundown of the most common Espruino commands. For a full list, check out the Espruino reference page.
Where parameters are surrounded by
], they’re optional and can be left out.
print(text) or console.log(text)
This prints the given text or variable to the console.
a="Hello World";print(a) will write
Hello World to the console, as would
You can also supply multiple arguments that will all be printed, separated by spaces.
LED1 and LED2
These variables are the pins that are connected to the onboard ...