function(arr) { ret= []; for (var i = 0, len = arr.length; i < len; i++) { ret.push(arr[i] * arr[i]); } return ret; }