badge 2

var arr = new Array(); arr[0] = 100; arr[1] = 0; arr[2] = 50; arr.min(); // return 0 arr.max(); // return 100