r/badcode • • Aug 27 '19

[deleted by user]

[removed]

46 Upvotes

68 comments sorted by

View all comments

Show parent comment

4

u/anamorphism Aug 27 '19

supposedly it stands for ascii to binary and the reverse (btoa) for binary to ascii, since base64 consists of only safe ascii characters and binary data is represented as strings in javascript or something like that.

/shrug

1

u/[deleted] Aug 28 '19

Depending on how the string is encoded. Because in javascript, you can implicitly cast anything into anything, but changing a string into another kind of string is not allowed.