2

Someone told me that there's !< and !> in JavaScript. I tried it but it didn't work. Is there something like this in JavaScript? If not in JavaScript, is it there in any other language?

Mohammed Shoaib
  • 344
  • 4
  • 11

2 Answers2

4

No. In JavaScript and many other languages (for numbers - not NaN - and strings):

"!<" is >=

"!>" is <=

Check this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators

Alberto Trindade Tavares
  • 10,056
  • 5
  • 38
  • 46
1

No !< and !> are not there in javascript and in most of the other programming languages too. You can try > instead of !< and < instead of !>

Amaan Iqbal
  • 761
  • 2
  • 9
  • 25