One of the reasons I brought this up was a recent article about energy efficiency of programming languages.[1] JavaScript is ~2x less energy efficient than Java, so it will eat twice the battery.
[1] https://sites.google.com/view/energy-efficiency-languages/re...