一位朋友在面试时问我这个问题。
function canbetrue(x) {
return x != x;
}param的哪个值将使上述函数返回真?
console.log(canbetrue(param));发布于 2018-10-11 10:01:03
NaN是你要找的.
function canbetrue(x) {
return x != x;
}
console.log(canbetrue(NaN));
https://stackoverflow.com/questions/52757240
复制相似问题