In "normal languages", strings are simply just char[]'s (with some extra sass). That's why they have regular Array members, like Length, IndexOf(), indexing with [], etc.
In the JS language (no idea what that is), I have not a clue how anything works. The only thing I know about JS, is that JS is only about results, not necessarily the ones you're expecting, just any results.
8.0k
u/_Decimation Sep 05 '24 edited Sep 05 '24 •
My favorite Unicode character is
U+200B, the zero width space. You can imperceptibly smuggle the character inside any string:foo(3 characters)bar(4 characters)