// 3.___ const convertToStar=(sentences="aa aa")=>{ const sentArr = sentences.split(' '); let newSentences=[] sentArr.forEach((word,idx)=>{ if(word.length>2){ let newWord=''; const lengthWord = word.length word.split('').forEach((char,idx)=>{ if(idx>0&&idx{ const length = sentences.replace(/\s/g, "").length return length } console.log(lengthSentences('bootcamp fullstack java')) // 5.____ const totalWords=(sentences)=>{ const length = sentences.split(' ').length return length } console.log(totalWords('bootcamp fullstack java'))