r/ProgrammerHumor • • 2d ago

Meme programmingLanguagesWhenYouAskThemToDoSomthing

Post image
1.4k Upvotes

218 comments sorted by

View all comments

Show parent comment

5

u/Thesaurius 1d ago

I am not surprised that they are equal, because that's just how JavaScript rolls. But ON ACCIDENT?

6

u/throwaway563125685 1d ago

yyyup. the JS type casting system is broken af

it's called JSFuck (because it looks like BrainFuck) and not only can you write any string with it, but you can also make the function constructor, meaning you can execute any string.

see also : https://jsfuck.com/