今天在尝试记录和测试条件时,我遇到了 Chome 控制台的以下场景。有人可以帮我理解为什么会出现这种行为。
// 1. in this output "this is not good" is not there and returned is false then
// undefined ?? is that returned value
console.log("this is not good = " + 100 > 0 )
false
undefined
// 2. next case is executing fine by introducing ()...
// undefined ?? return type
console.log("this is not good = " + (100 > 0) )
this is not good = true
undefined