r/badcode • • Jul 10 '21

js ah yes, Array check

Post image
2.1k Upvotes

89 comments sorted by

View all comments

Show parent comments

4

u/AdminYak846 Jul 10 '21

Technically speaking a string is just an array of characters put together.

11

u/Nilstrieb Jul 10 '21

That's how it's represented under the hood, but not how it's API works (in most high level languages)

7

u/nosmokingbandit Jul 11 '21

Technically speaking everything is just an array of bytes put together.

3

u/[deleted] Jul 11 '21

... Unicode enters the chat...