Based on this question How does “+var === +var” work internally to verify if var is numeric? :
var a = "123"
var b = "123b"
if ( +a === +a ) // true
if ( +b === +b ) // false
my question is how if javascript can't convert "123b" to a number, the Value would be NaN
so how is typeof +b
// Returns number`
How does this logic work.