今日、条件のロギングとテストを試みているときに、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