Tag: 布尔逻辑

有和没有“!!”的谓词有区别吗?

如标题所示。 let x = anything; if(x){ console.log("True"); } if(!!x){ console.log("True"); } 这里输出总是会是真的?