Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    What type of js coding is this ???


  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,243
    Thanks
    203
    Thanked 2,555 Times in 2,533 Posts
    People are reluctant to click on links provided by newcomers to the forum.
    Show the code you refer to here.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,107
    Thanks
    80
    Thanked 4,554 Times in 4,518 Posts
    I took a chance.

    It's just another feeble attempt at encrypting code.

    He didn't show the complete code, so I didn't try to decrypt it. (It's hex encoded, but using some kind of offset or key in addition.)
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,243
    Thanks
    203
    Thanked 2,555 Times in 2,533 Posts
    Quote Originally Posted by Old Pedant View Post
    I took a chance.

    It's just another feeble attempt at encrypting code.

    He didn't show the complete code, so I didn't try to decrypt it. (It's hex encoded, but using some kind of offset or key in addition.)
    Not so feeble then!

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    One and a half statements assigning strings to variables.

    Presumably the rest of the script would then do something with the variables if you were to add the end of the second assignment and whatever follows it.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #6
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,107
    Thanks
    80
    Thanked 4,554 Times in 4,518 Posts
    Quote Originally Posted by Philip M View Post
    Not so feeble then!
    <shrug>Can't tell without seeing all the code.

    As Felgall said, even the entire string isn't there for the second variable.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •