Code crashes from console.log


I well. uhhh. Tried to log an array with 101 inner arrays all with 101 elements inside. It crashed my code. What should I do? I absolutely need to log this array!


Hi @Electrox-Qui-Mortem can you provide us with some sample code and the error you’re seeing in the console, or conversely the name of your project, so someone can take a closer look?

 let t = []
 for(let i = 0;i < 101; i++){
       let r = []
       for(let j = 0;j < 101; j++){
              let block = false
              [].forEach(tree => {
                      block = true
              console.log(i, j)
              if(!block) r.push(0)

I’m trying to make a graph for astar.js