I am wondering this code, trying to understand the nan or Nan value since it is not falsy or truthy and it's just a Number object of the type of number, the question is here why does this return zero since Nan is not falsy
my expected value here is Nan
tip = '.'
total = 10
let totalPlusTip = ((total * (tip/100)) + total) || 0
console.log(totalPlusTip) //0
my expected value here is 110
tip = 10
total = 100
let totalPlusTip = ((total * (tip/100)) + total) || 0
console.log(totalPlusTip) //110
since Nan is not false why isn't returning Nan when we do