was reading
so i tested this in the terminal via node:
([]+![])[![]+1].repeat(100).toUpperCase()
probably a dumb question but how does that work?
pardon my javascript , but it looks like a mess of arrays repeated 100 times in uppercase
this is dumb.
and ridiclous.
mystifying.
but also kind funny.
Top comments (2)
It's actually quite simple, it's just taking advantage of the implicit type conversions JS does behind the scenes. It is explained pretty well here
thank you!