Console.log not showing array content


This Content is from Stack Overflow. Question asked by MATTIA PIRAS

Hi I’m doing an exercise for my coding class that requires to modify a tree in javascript, I think the code is right but testing with console.log, I can’t see the leaves

  val: 0,
  son: [ { val: 0, son: [Array] }, { val: 3 }, { val: 0, son: [Array] } ]

I need to know what’s inside [Array]

Thank you


Check the Answers

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?