As @DrAzzy says really - it's really easy to fill up available memory if you use normal arrays. Using stuff like Uint8Array, data goes quite a long way though.
Also if you're adding comments, try and add those outside the functions as then they don't get stored in Espruino.
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.
As @DrAzzy says really - it's really easy to fill up available memory if you use normal arrays. Using stuff like Uint8Array, data goes quite a long way though.
Also if you're adding comments, try and add those outside the functions as then they don't get stored in Espruino.