Advertisement
Guest User

Untitled

a guest
Mar 5th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. //"qwertyuiopasdfghjklzxcvbnm".split("").sort().map(V=>{return V.replace(/(.)/,'let $&;')}).join("\n");
  2. "qwertyuiopasdfghjklzxcvbnm".split("").sort().map(V=>{return V.replace(/(.)/,'$&, ')}).join("").replace(/^(.+)$/,'const $&').replace(/..$/,';');
  3.  
  4. // =>
  5. //let a, b, c, ....... x, y, z;
  6.  
  7.  
  8. // console.dir(*); style
  9. "qwertyuiopasdfghjklzxcvbnm".split("").sort().map(V=>{return V.replace(/(.)/,'console.dir($&);')}).join("\n")
  10.  
  11. // =>
  12. // console.dir(a);
  13. // console.dir(b);
  14. // console.dir(c);
  15. // .
  16. // .
  17. // .
  18. // console.dir(y);
  19. // console.dir(z);
  20.  
  21.  
  22. // console.log("*:"); style
  23. "qwertyuiopasdfghjklzxcvbnm".split("").sort().map(V=>{return V.replace(/(.)/,'console.log("$&:");')}).join("\n");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement