JavaScript
x
1
console.log(1 == 2); // 1 == 2 の評価値
2
console.log((1 == 2) === 0); // 1 == 2 の評価値は 0 か?
3
console.log(Number.isInteger(1 == 2)); // 1 == 2 の評価値は整数か?
4
if (1 == 2) { // 1 == 2 は真か?
5
console.log("1 == 2 is true");
6
} else {
7
console.log("1 == 2 is false");
8
}
9
$ node prog.js
Start
false false false 1 == 2 is false
0
Finish