javascript to save your progress function largestEven(nums) { const check = Math.max.apply(Math, nums.filter(item => item % 2 === 0)) return check } console.log(largestEven([1, 3, 5, 7])) -Infinity code example
Example: javascript max array
var values = [3, 5, 6, 1, 4];
var max_value = Math.max(...values); //6
var min_value = Math.min(...values); //1