1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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,500
    Likes Received:
    4,460
    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:
    536
    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,998
    Best Answers:
    253
    Trophy Points:
    515
    #4
    deathshadow, Jul 24, 2018 IP
    sarahk likes this.
  5. arto8

    arto8 Greenhorn

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #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