daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest May 16th, 2018 110 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <html>
  2. <head>
  3. <script>
  4. function print(a) {
  5.   var b;
  6.   b = a.map(function(v) {
  7.     return v ? "1" : "0";
  8.   });
  9.   document.write(b.join(""));
  10. }
  11.  
  12. function run() {
  13.   var a, b, i;
  14.   a = [];
  15.   for (i = 0; i < 9; i++) {
  16.     b = a.map(function(v) {
  17.       return !v;
  18.     });
  19.     b.reverse();
  20.     a.push(true);
  21.     b.forEach(function(v) {
  22.       this.push(v);
  23.     }, a);
  24.   }
  25.   print(a);
  26. }
  27. </script>
  28. </head>
  29. <body onload="run()">
  30. </body>
  31. </html>
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