js find higher value in array code example Example: js find higher value in array var arr = [1, 2, 3]; var max = Math.max(...arr);