ornamental smith
Printable View
ornamental smith
ornamentalsmith
ornamental smith
ornamentalsmith
Secret word: ronamentalsmith
Muzz Ares
Secret word: ornamentalsmith
ornamental smith
My answer is Ornamentalsmith.
Jaze21
Secret word: ornamentalsmith
ornamentalsmith
The ". Secret word:" is "ornamentalsmith"
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
ornamental smith
Prize_crystal. Secret word: ornamentalsmith
Prize_Crystal. Secret word: ornamentalsmith Thanks :)
Secret word: Ornamentalsmith
Secret word: ornamentalsmith
it returns "ornamentalsmith"
As written, I think this returns nothing. No periods between "this" and "strX" in that return statement.
If we clean up the code to make it work (as written):
Then the result would be: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);
undefined. Secret word: ornamentalsmith
ornamentalsmith
ornamental smith
ornamentalsmith
ornamentalsmith
I think that is the answer you are looking for..
although this code looks horrible to me..
Prize_Crystal is not defined, and even if it was a typo, it is not initialized..
thisstr4 etc looks odd as well.. are you missing a ".", like this.str4? etc etc
To me, another answer is, your code doesn't compile or run without errors :(
ornamentalsmith
The secret word is: ornamentalsmith
ornamentalsmith
does this mean a new building is coming???? :)
and btw, this line:
return preference + “. Secret word: “
aren't your closing quote marks backwards???? that means your code would never run
Secret word: ornamentalsmith
ornamentalsmith
ornamentalsmith
Str7: " ", needs to be placed between thisstr1 and thisstr6
ornamental smith
Prize_Crystal. Secret word: ornamentalsmith
ornamentalsmith
ornamentalsmith
I don't know what preference is, but the output is whatever preference is concatenated with
. Secret word: ornamentalsmith
ornamentalsmith
ornamentalsmith
undefined. Secret word: ornametnalsmith
Prize_Crystal. Secret word: ornamental smith
ornamentalsmith