我不知道为什么我的功能不起作用。 它应该像这样工作:
If 1 !== 2 and 1 !== 3 and 3 !== 2
returns True
else
return False
我的 func 不起作用并且总是返回 False idk 为什么
x = 1
z = 2
y = 3
function unequal(x,y,z) {
if (x !== z || y !== z || x !== y) {
console.log('True')
}
else {
console.log('False')
}
}
(unequal())
x = 1
z = 2
y = 3
function unequal(x,y,z) {
if (x !== z && y !== z && x !== y) {
console.log('True')
}
else {
console.log('False')
}
}
(unequal(x, y, z))
或
x = 1
z = 2
y = 3
function unequal() {
if (x !== z && y !== z && x !== y) {
console.log('True')
}
else {
console.log('False')
}
}
(unequal())