I cant find my fail in the code why the secound for loop doesnt work. Please help me. thx
i tried to modify the for code. i tried to look if it works without the secound loop and it does. any idea?
//--js file with the object array which is loaded in the 2nd file--
let inhaltsverzeichnis_beispiele = [ 
  { blatt:'1' 
    ,name: ['Übungszettel 1 [2013]', 'Übungszettel 1 [2014]', 'Übungszettel 1 [2018]']
    ,a_href: ['Übungsbeispiele_1_2013','Übungsbeispiele_1_2014','Übungsbeispiele_1_2018']
    ,fach: ['Physik Integral- und Differentionrechnungen','Physik Integral- und Differentionrechnungen','Informatik AnalysisT1']
   },
 ]
//----2nd file code segment
document.write('<button class="buttn" onclick="myFunction(\'index\')" style="color:red;">Inhaltsverzeichnis</button><div id="index" style="display:none;"><ul style="list-style: none;">');
  for (NR_i = 0; NR_i < inhaltsverzeichnis_beispiele.length; NR_i++) {
    document.write(
      '<li>'
        + '<table>'
        +   '<tr>'
        +     '<td style="width:30px">' 
        +        inhaltsverzeichnis_beispiele[NR_i].blatt 
        +     '</td>'
      );
      //---- That loop doesnt work =/
      for (NR_i2 = 0; NR_i2 < inhaltsverzeichnis_beispiele[Nr_i].name[NR_i2].length; NR_i2++) { 
        document.write(
          +  '<td>' 
          +    '<a href="#'
          +      inhaltsverzeichnis_beispiele[NR_i].a_href[NR_i2]
          +    '" >' 
          +      inhaltsverzeichnis_beispiele[NR_i].name[NR_i2]
          +    '</a>'
          +  '</td>'
        )
      }
      //----- That loop doesnt work =/ End
      document.write(
        +    '</tr>'
        +  '</table>'
        +'</li>' 
      );
    };  
 document.write('</ul></div>');
 //----2nd file code segment End
 
     
    