Hi,
Maybe just try:
["arr","JsVar","An array"]
not:
["arr","JsVarArray","An array"]
JsVarArray is when you want all the arguments to the function to be put in an array, and for you to receive that array.
JsVarArray
For example with the code you're using require("crypto").test(1,2,3); would cause jsvGetArrayLength to return 3 because there are 3 arguments
require("crypto").test(1,2,3);
Hello Gordon, Thanks for teaching me. I will continue coding. :D
@Gordon 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.
Hi,
Maybe just try:
not:
JsVarArray
is when you want all the arguments to the function to be put in an array, and for you to receive that array.For example with the code you're using
require("crypto").test(1,2,3);
would cause jsvGetArrayLength to return 3 because there are 3 arguments