The curious case of a strange JavaScript code

Discussion in 'JavaScript' started by Phil S, Jul 22, 2018.

  1. #1
    A few months back, I have stumbled upon this "bit" of scripting that blew my mind (attached).

    The output, believe it or not, is this string : "God has left us, and it's because of JavaScript."

    What's going on here? How does this work? I suspect it to be some weird and hacky way to encode it to binary or something.
     

    Attached Files:

    Phil S, Jul 22, 2018 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,803
    Likes Received:
    4,534
    Best Answers:
    123
    Trophy Points:
    665
    #2
    cute, I imagine it's playing with binary
     
    sarahk, Jul 22, 2018 IP
  3. hdewantara

    hdewantara Well-Known Member

    Messages:
    538
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #3
    I give up; I spent about 30 minutes trying to de-obfuscate it without any success. If God left us, does that mean Lucifer is peeking from inside? :eek:
     
    hdewantara, Jul 22, 2018 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    deathshadow, Jul 24, 2018 IP
    sarahk likes this.
  5. arto8

    arto8 Member

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    prepared this stroke
    ƒ anonymous(
    ) {
    document.write("<body style='background-color: white'><p>God has left us, and it's because of JavaScript.</p></body>");
    }
     
    arto8, Nov 1, 2018 IP