Question: Solution: // edge case if (arr.length === 0) return; // logic let max = arr[0]; for (let i = 1; i < arr.length; i++) { let current = arr[i]; if (current > max) { max = current; } } return max;
bishalshaw.hashnode.dev1 min readNo responses yet.