const getLargest = (arr) => arr.reduce((largest, num) => Math.max(largest, num)); const arr = [13, 7, 11, 3, 9, 15, 17]; console.log(getLargest(arr)); // 17