The Alert to Life, the Universe and Everything… Part 1

I’m going to hit you with some supposed gobbledygook here…

[][(__=”+!!(_=+[]))[_$=-~-~-~_]+($$=”+{})[$=-~_]+($_=”+!_)[$]+$_[_]][$$[-~($+_$)]+$$[$]+(”+$/_)[$]+__[_$]+$_[_]+$_[$]+$_[$+$]+$$[-~($+_$)]+$_[_]+$$[$]+$_[$]](__[$]+__[$+$]+$_[_$]+$_[$]+$_[_]+'(‘+((($<<($<<$)^$)<<($<<$)^$)<<$)+’)’)()

Now, copy and paste it into your JavaScript console in your browser…

With me so far? Okay, now that you’ve pasted that, hit the Enter key on your keyboard.

You should get something similar to this:


An alert with 42 in it…

I showed this to a friend of mine who said in response “This is nuts!”

This was an entry of mine for a coding competition for displaying the number 42 on the most creative way thinkable.
This takes advantage of a lot of weird quirks of JavaScript like loose typing, alternative variable naming conventions, primitives and some really awesome bit mathematics. I’m going to go though these step by step over the next few posts.

Ready to be absolutely but happily mindf[CENSORED]ked? Okay, strap yourselves in, this is going to be a hell of a ride…

Stay tuned for Part 2, Don’t Lose My Number…

2 thoughts on “The Alert to Life, the Universe and Everything… Part 1

  1. Bambou, when you copy and pasted this code, did you remember to remove the carriage returns and just paste it as a single block of code? Could you possibly get back to me on whether this works for you?

    Like

Leave a comment