Stores the required count of nodes for each level
let levelResult = new Array ( numLevels ) ; levelResult . fill ( 0 ) ; findNodes ( root , levelMin , levelResult , 0 ) ; for ( let i = 0 ; i < levelResult . length ; i ++ ) { document . write ( levelResult [ i ] + " " ) ; } }