@GRikell the problem is not let/const. So far I broke down the issue to a specific commit in the layout library itself by @Gordon.
The issue was introduced here https://github.com/espruino/BangleApps/commit/43a3d70571d35896a24fb1364e9fb0f066391807
It tries to use a physical button 2 for this example instead of a virtual one. The BangleJS2 only has one physical button.
Reverting that commit it is using correctly virtual buttons on the BangleJs2
@fewieden 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.
@GRikell the problem is not let/const. So far I broke down the issue to a specific commit in the layout library itself by @Gordon.
The issue was introduced here https://github.com/espruino/BangleApps/commit/43a3d70571d35896a24fb1364e9fb0f066391807
It tries to use a physical button 2 for this example instead of a virtual one. The BangleJS2 only has one physical button.
Reverting that commit it is using correctly virtual buttons on the BangleJs2