Trying to convert if else statement into ternary in javascript

后端 未结 0 875
盖世英雄少女心
盖世英雄少女心 2021-02-04 22:15

if (props.name == "Computer"){ if (result == "Won"){ result = "Lost"; } else if (result == "Lost"){ result = "Won"

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