\x4F -> O \x4B -> K alert("\x4F\x4B"); 

Who will add a full table of characters? Never used, but now interested.

2 answers 2

These are characters in ashii encoding. The full table is here .

  • Thanks, that was necessary! - Palmervan
  • In js, not ASCII, but UTF-16. At least if you take not the most ancient implementations that do not follow ECMAScript - culebre

It's Unicode there their fucking cloud. In js, utf-16 is used, and I read that some of the most commonly used characters use 8 bytes, and if I am not mistaken, there is complete compliance with the ASCII table, and rare 16 bytes from the entire UTF-16 table. Therefore, there is a non-uniformity of memory allocation for the line. And in principle, the Windows table of characters contains UTF codes

  • Transformed in response, also useful info! - Palmervan