function append(arr, item) { const newarr = []; for(let i=0;i<arr.length;i++) { newarr.push(arr[i]); } newarr.push(item); return newarr; }
function append(arr, item) { const newarr = []; for(let i=0;i<arr.length;i++) { newarr.push(arr[i]); } newarr.push(item); return newarr; }