fork download
  1. var your_drink;
  2.  
  3. var reverse=function(s) {
  4. return s.split("").reverse().join("");
  5. }
  6.  
  7. var bartender = {
  8. str1: "ers",
  9. str2: reverse("rap"),
  10. str3: "amet",
  11. request:function(preference) {
  12. return preference+".Secret word:"+
  13. this.str2+this.str3+this.str1;
  14. }
  15. }
  16.  
  17. bartender.request(your_drink);
Success #stdin #stdout 0.01s 30144KB
stdin
Standard input is empty
stdout
Standard output is empty