(JavaScript) Without using eval(), write a function that determines if the relation between two numbers written as a string is true

后端 未结 0 822
眼角桃花
眼角桃花 2020-12-01 23:52

Examples:

isTrue("2=2") ➞ true

isTrue("8<7") ➞ false

isTrue("5=13") ➞ false

isTrue("15>4") ➞ true

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