r/badcode • • Aug 27 '19

[deleted by user]

[removed]

48 Upvotes

68 comments sorted by

View all comments

Show parent comment

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.