So, I did this in order to find the second biggest value in an array (I know there are a lot of answers out there, I just want to know why this approach fails)

With a first `reduce()` method on the number array I find the largest number, then using a second `reduce()` method I tried to use an `if` statement to check return the biggest number only if the compared numbers are not the previous biggest one found. This is the code:

```
const arr = [1,6,2,7,3,9,5,8];

const biggest = arr.reduce((a,b)=> {
  return Math.max(a,b)
})

console.log(biggest)

const secondBiggest = arr.reduce((a,b)=>{
  if(a!= biggest && b!= biggest){
    return Math.max(a,b)
  }
})

console.log(secondBiggest) // --> NAN

```