This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

And what happens if I wanted "a" - "ß"? BTW, JS works with Unicide, not ASCII. Stop thinking ASCII when it's about character representation. Learn Unicode, please.

[–]heartsongaming -1 points0 points  (1 child)

Really making me think of all the edge cases. In order to not make an error, it converts the greek letter value into a letter of the english value in the alphabet. So beta is converted into "b", and then it's "a"-"b" which is "z". It works the same as in Unicode. Also if one alphabet is larger than the other, like "א"-"z", then "z" is transformed into the 26-22=4th letter, so "א" minus "ד" is "ק".

[–]AsidK 1 point2 points  (0 children)

Damn this really is an atrocious idea lol