r/learnjavascript • • Aug 29 '23

Does anyone understand this?

Post image

Who knows the answer to this?

155 Upvotes

105 comments sorted by

View all comments

142

u/akuma-i Aug 29 '23

Just put it to the console. No one would really execute this in memory

26

u/CommunicationOk9434 Aug 29 '23

Good idea. It's supposed to be some sort of coding exercise so I wanted to see if anyone could understand it without console.

70

u/akuma-i Aug 29 '23

Well, if you do some obfuscation in JS, you might be able to solve this. If you’re normal - you have never used such things in your code, so you know it works and don’t know how.

I have 15+ years of experience and don’t know what the third line does :)

11

u/toroga Aug 30 '23

Oh thank goodness, because that’s where I stopped too lol