function childNum (str) { console.log(str) const result = [] const childStr = str.trim() if(str.length === 0 || childStr.length === 0) { return [] } const childStrArr = (str) => { conole.log(str) if(str.length === 1) { return str } result.pu str.forEach((i,index) => { }) } } // console.log(childNum())