Operator precedence
2022年5月1日小于 1 分钟
Operator precedence
Question
What does the code snippet to the right output by console.log
?
Snippet
console.log(0 == 1 == 2)
console.log(2 == 1 == 0)
console.log(0 < 1 < 2)
console.log(1 < 2 < 3)
console.log(2 > 1 > 0)
console.log(3 > 2 > 1)