code: function(s) {
        var r = '';
        for (var i = s.length - 1; i >= 0; i--) {
          r += s[i];
        }
        return r;
      }
docs: javascript doesn't have negative lookbehind so we have to reverse the string