0
Why output is - true?
Console.log("itchy" != "Scratchy"); Becoz both are string , it is true but becoz of != It should may return false.
2 Réponses
+ 4
itchy is a mouse wich is not equal to scratchy that's a cat!
They are aslo totally different strings, so it will mostly be true because != means "NOT equal to"
+ 2
undoubtedly it will print true because you have set "!=" that means "isNotEqualTo". String value isn't same so it will return true.