この条件でnot 演算子 ( !) を使用すると、次のようになります。
"Uncaught SyntaxError: Unexpected token !"
if (text.includes(input[j])) {
$(Messages[i]).hide();
}
else if !(text.includes(input[j])) {
$(Messages[i]).show();
}
なぜ!ここで働いていないのですか?
この条件でnot 演算子 ( !) を使用すると、次のようになります。
"Uncaught SyntaxError: Unexpected token !"
if (text.includes(input[j])) {
$(Messages[i]).hide();
}
else if !(text.includes(input[j])) {
$(Messages[i]).show();
}
なぜ!ここで働いていないのですか?