I am encountering a strange issue while comparing two strings. Here is my code:
console.log(x == y);
console.log(\"\'\" + x + \"\'==\'\" + y + \"\'\");
conso
BTW. try this code in JS (copy-paste) :)
console.log("A" == "А");
prints "false" :)
Comparing strings means comparing character codes. In some fonts, different character codes have the same "picture", like "l" and "I" (first is L, second is i). In my example above, first A is cyrillic, second is latin.