isNaN
Is type coercion the reason why empty strings and empty arrays are considered numbers? Or is the code below more of an instance of Truthy Falsy. let input5 = ""; if (!isNaN(input5)) { document.write("a"); } else { document.write("b") } // output is a let input6 = []; if (!isNaN(input6)) { document.write("a"); } else { document.write("b") } // output is a let testZero = 0 let testOne = "12"; let testTwo = ""; let testThree = []; let testFour; let testFive = true; let testSix = null; document.write(isNaN(testZero)); // false document.write(isNaN(testOne)) // false document.write(isNaN(testTwo)); // false document.write(isNaN(testThree)); // false document.write(isNaN(testFour)); // true document.write(isNaN(testFive)); // false document.write(isNaN(testSix)); // false P.S. I expected test Five to be true because I read true is considered to be 1. Thank you!