Closed Thread
Page 14 of 22 FirstFirst ... 4 12 13 14 15 16 ... LastLast
Results 131 to 140 of 214

Thread: Day of the Programmer

  1. #131
    Recruit
    Join Date
    Sep 2016
    Posts
    1
    World
    Zeus
    The ". Secret word:" is "ornamentalsmith"

  2. #132
    Recruit
    Join Date
    Nov 2017
    Posts
    1
    World
    Zeus

    Cool Puzzle solve. from DataWiz

    Thanks for the diversion. But...you introduced the syntax of "ThisstrX" which threw me, until I treated it as StrX and got: Ornamental Smith!

    Cheers,
    Data

  3. #133
    Recruit
    Join Date
    Sep 2018
    Posts
    1
    World
    Ares
    ornamental smith

  4. #134
    Recruit
    Join Date
    Apr 2012
    Posts
    18
    World
    Zeus
    Prize_crystal. Secret word: ornamentalsmith

  5. #135
    Recruit
    Join Date
    Aug 2012
    Location
    Austin, TX
    Posts
    17
    World
    Zeus
    Prize_Crystal. Secret word: ornamentalsmith Thanks

  6. #136
    Recruit
    Join Date
    Oct 2013
    Posts
    4
    World
    Zeus

    Day of the Programmer answer

    Secret word: Ornamentalsmith

  7. #137
    Recruit menalaus's Avatar
    Join Date
    Dec 2012
    Posts
    15
    World
    Zeus
    Secret word: ornamentalsmith

  8. #138
    Recruit
    Join Date
    Sep 2013
    Location
    NC, USA
    Posts
    17
    World
    Zeus
    it returns "ornamentalsmith"

  9. #139
    Noble Eriond's Avatar
    Join Date
    Feb 2012
    Location
    Vale of Aldur
    Posts
    347
    World
    Zeus
    As written, I think this returns nothing. No periods between "this" and "strX" in that return statement.

  10. #140
    Noble Eriond's Avatar
    Join Date
    Feb 2012
    Location
    Vale of Aldur
    Posts
    347
    World
    Zeus
    If we clean up the code to make it work (as written):
    Code:
    // If you can read this code, tell your Community Manager the secret word and win a small prize.
    
    var	Prize_Crystals;
    var	reverse = function(s) {
         return s.split("").reverse( ).join("");
    };
    var	communitymanager = {
        Str1: "al",
        Str2: reverse("hti"),
        Str3: reverse("tne"),
        Str4: reverse("nro"),
        Str5: "am",
        Str6: reverse("ms"),
    
        request: function(preference) {
             return preference + ". Secret word: " +
             this.Str4+this.Str5+this.Str3+this.Str1+this.Str6+this.Str2;
        }
    };
    communitymanager.request (Prize_Crystals);
    Then the result would be:
    undefined. Secret word: ornamentalsmith

Closed Thread

Posting Permissions

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