Espruino/tests/test_function_array_001.js
2013-10-09 17:03:39 +01:00

7 lines
108 B
JavaScript

// Test a function returning an array
function a() { return [41,42,43]; }
var v = a()[1];
result = v==42;