SHARE
TWEET

Untitled

a guest Jan 11th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var scrnHt = 120;
  2. var scrnWd = 192;
  3.  
  4. function buildScreens(ht, wd){
  5.  
  6.   var screen = new Array();
  7.   console.log("init screen:", screen);
  8.  
  9.   for(let i = 0; i < ht; i++){
  10.  
  11.     screen.push(new Array());
  12.     console.log("update screen:", screen);
  13.     console.log("new empty array in screen:", screen[i]);
  14.  
  15.     for(let j = 0; j < wd; i++){
  16.  
  17.       screen[i].push[j];
  18.  
  19.     }
  20.   }
  21. }
  22.  
  23. window.onload = buildScreens(scrnHt, scrnWd);
RAW Paste Data
Top