Howdy Ducky, Have a look at the following and see if this helps ...
https://github.com/espruino/Espruino/blob/master/targets/esp8266/docs/05-User_Guide.md
If that doesn't completely answer your questions, PLEASE post back so that we can address by making those docs clearer.
@Kolban started
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.
Howdy Ducky,
Have a look at the following and see if this helps ...
https://github.com/espruino/Espruino/blob/master/targets/esp8266/docs/05-User_Guide.md
If that doesn't completely answer your questions, PLEASE post back so that we can address by making those docs clearer.