Logical operator AND/ OR short circus in Javascript

前端 未结 0 1875
旧时难觅i
旧时难觅i 2021-02-09 13:31

Im still in very basic phase of JS,encountered a exercise I stucked recently, here\'s the code below:

alert(alert(0) || alert(2));

result return

相关标签:
回答
  • 消灭零回复
提交回复
热议问题