title: Electron best way for multiple windows
body: <p>What is the proper way to open multiple BrowserWindows? I do it like this and works fine so far. Is better to make an array of win?</p>
  
  <pre><code>let win;
  
  function createWindow () {
    for (i=0; i&lt;loadNotes.notes.length; i++){
    win = new BrowserWindow({
      'x': loadNotes.notes[i].pos.x,
      'y': loadNotes.notes[i].pos.y,
      'width': loadNotes.notes[i].pos.width,
      'height': loadNotes.notes[i].pos.height,
      'frame': false});
  
    win.setMenu(null);
    win.loadURL(`file://${__dirname}/index.html?${loadNotes.notes[i].name}`);
    //win.webContents.openDevTools()
    }
    win.on('close', () =&gt; {
  
    })
  
    win.on('closed', () =&gt; {
      win = null
    });
  }
  </code></pre>