function add(a, b)
{
return a + b;
}
function main()
{
var a = add(1, 3); // Returns 4
var b = add("Hello ", "World"); // Returns "Hello World"
}
It is possible to build and execute such a simple program? I'm guessing so, but it just isn't documented and isn't being made easy. I ask because it would make testing code that depends only on the MonkeyC language (and not on the ConnectIQ API) much easier.
Travis