Closed Thread
Page 7 of 22 FirstFirst ... 5 6 7 8 9 17 ... LastLast
Results 61 to 70 of 214

Thread: Day of the Programmer

  1. #61
    Settler Kevlaar's Avatar
    Join Date
    May 2016
    Posts
    103
    World
    Zeus
    Secret word:
    Spoiler

    ornamentalsmith

  2. #62
    Recruit
    Join Date
    Sep 2012
    Posts
    2
    World
    Ares
    secret word = ornamentalsmith

  3. #63
    Recruit
    Join Date
    Jan 2016
    Posts
    7
    World
    Zeus
    Hey

    Maybe it could be Crystal Shard

    Owela

  4. #64
    Settler
    Join Date
    Jun 2014
    Location
    Tulsa
    Posts
    102
    World
    Zeus
    The Secret Word is: ornamentalsmith

    Thanks for the mental challenge.

  5. #65
    Soldier
    Join Date
    Feb 2012
    Posts
    74
    World
    Zeus
    Ornamentalsmith

  6. #66
    Soldier
    Join Date
    Sep 2016
    Location
    @ home
    Posts
    72
    World
    Ares
    Quote Originally Posted by BB_Odhran View Post
    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: “
    +thisstr4+thisstr5+thisstr3+thisstr1+thisstr6+this str2;
    }
    };
    communitymanager.request (Prize_Crystal)[/CODE]
    Hi BB_Odhran
    I think the output you are looking for is ". Secret word: ornamentalsmith"

    However there are errors in the code, some of them are:
    You have an unused variable Prize_Crystals, an undeclared variable, Prize_Crystal
    The references to "this" should be "this.", so the line should read as follows
    return preference + "Secret word: "+this.str4+this.str5+this.str3+this.str1+this.str 6+this.str2;

    Still, fun what you are trying to do

    So the secret word for your post is ornamentalsmith

    Pool

  7. #67
    Soldier
    Join Date
    Jul 2012
    Posts
    86
    World
    Zeus
    ornamental smith

  8. #68
    Recruit
    Join Date
    Oct 2015
    Posts
    11
    World
    Ares
    ornamental smith

  9. #69
    Recruit
    Join Date
    Sep 2013
    Posts
    5
    World
    Ares
    ornamentalsmith

  10. #70
    Recruit
    Join Date
    May 2012
    Posts
    11
    World
    Zeus
    . Secret word: ornamentalsmith

    ...if one makes MANY assumptions about the syntax of the programming language.

    It also feels like:
    1. Var Prize_Crystals should've been Var Prize_Crystal = ""
    2. thisstr should've been this.Str (for all occurrences)
    3. the second occurrence of reverse should've probably been .reverse
    4. not going to talk about double quotes...

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