Is this (see listing) possible with espruino javascript.
function add() {
var i, len, result = 0;
for (i = 0; len = arguments.length; i < len; ++i) {
result += arguments[i];
}
return result;
}
add(3, 7, 4, 6); //result = 20
Search Options
Types to Display
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.
Is this (see listing) possible with espruino javascript.