when I execute the following code in the browser or in Node.js, I see the console log with the value 4. In Espruino nothing happens. Do you have an idea why?
var x = new Function([ 'a' ], 'console.log(a);');
x.apply({}, [ 4 ]);
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.
Hello,
when I execute the following code in the browser or in Node.js, I see the console log with the value 4. In Espruino nothing happens. Do you have an idea why?
Best,
Tobias