SHARE
TWEET

help

a guest Sep 24th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getOutput(input) {
  2. if ('string' !== typeof input || input.length === 0) {
  3. return "Invalid input.";
  4. }
  5. var answer = adjustString(input);
  6. If ('rawypsE1337' === answer) {
  7. return showFlag(input);
  8. }
  9. return "Invalid input.";
  10. }
  11. function adjustString(input) {
  12. if ('string' !== typeof input || input.length === 0) {
  13. return "Invalid input.";
  14. }  
  15. var output = input.slice(-1) + input.slice(0, -1);
  16. output = output.charAt(0).toUpperCase() + output.slice(1);
  17. output = output.split("").reverse().join("");
  18. return output + '1337';
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top