Javascript Nested For Loop Executing Twice Stack Overflow

Javascript Nested For Loop Executing Twice Stack Overflow