// Test property access for num.Array
var num = use('num');

// Create an array
var arr = new num.Array([10, 20, 30, 40, 50]);

log.console("Testing property access:");
log.console("arr[0] =", arr[0]);
log.console("arr[1] =", arr[1]);
log.console("arr[2] =", arr[2]);
log.console("arr[4] =", arr[4]);

arr[0] = 15
log.console(arr[0])
log.console("arr[10] =", arr[10]); // Should be null

log.console("arr.length =", arr.length);

log.console(arr instanceof num.Array)
log.console(json.encode(arr))


$_.stop();