window is web browser window when javascript runs as part of web page, do you really expect web browser to be runing inside the watch? try global
see also https://javascript.info/global-object , it is same like in node.js
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.
window
is web browser window when javascript runs as part of web page, do you really expect web browser to be runing inside the watch? tryglobal
see also https://javascript.info/global-object , it is same like in node.js