Homepage Dheeraj Pal 4 years ago Given a string remove all + present together in the string. Javascript Program Input string =’a+++b++c+’; Table of Contents Toggle Input string =’a+++b++c+’;Output String=a+b+c+Source Code Output String=a+b+c+ Source Code let str='a+++b++c+'; let outStr=''; let len=str.length; for(let i=0;i<len;i++) { if(str[i]=='+'&&str[i+1]=='+') { outStr=outStr+''; } else { outStr=outStr+str[i]; } } console.log(outStr); Next Read: Define a function that a number n as parameter and returns the sum of the<br>numbers from 1 to n Javascript Program » Dheeraj Pal: Leave a Comment Related Post How To Hide Post Tags in Hestia Themes 10 Tools to Find Trending Topics Online