4

this is not a totally serious question, but I think it might help me to understand another aspect of Javascript maybe.

Some time ago, I found this strange code:

<script>
if( ++[[]][+[]]+[+[]] === "10" )
    alert( ':o');
</script>

It's actually true!

Does anyone of you know why?

websupporter
  • 325
  • 1
  • 8

0 Answers0