daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var n = [];
  2.     var m = [];
  3.     for(i=1;i<=100;i++){
  4.         n.push(i);
  5.         if(i%10 == 0){
  6.             m.push(n);
  7.             n = [];
  8.         }
  9.     }
  10. m.push(n);
  11. console.log(m)
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