Advertisement
Peaser

Tiny Fizzbuzz

Jun 2nd, 2015
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for(var i=1;100>=i;i++){var f=i%3==0,b=i%5==0;console.log(f?b?"FizzBuzz":"Fizz":b?"Buzz":i)}
  2.  
  3. /* Please no... */
  4.  
  5. eval((function(p, a, c, k, e, d) {
  6.   e = function(c) {
  7.     return c;
  8.   };
  9.   if (!''.replace(/^/, String)) {
  10.     while (c--) {
  11.       d[c] = k[c] || c;
  12.     }
  13.     k = [
  14.       function(e) {
  15.         return d[e];
  16.       }
  17.     ];
  18.     e = function() {
  19.       return '\\w+';
  20.     };
  21.     c = 1;
  22.   }
  23.   while (c--) {
  24.     if (k[c]) {
  25.       p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);
  26.     }
  27.   }
  28.   return p;
  29. })('9(7 2=1;8>=2;2++){7 6=2%3==0,4=2%5==0;10.11(6?4?"14":"12":4?"13":2)}', 10, 15, '||i||b||f|var|100|for|console|log|Fizz|Buzz|FizzBuzz'.split('|'), 0, {}));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement