Define a function that a number n as parameter and returns the sum of the
numbers from 1 to n Javascript Program

Given a string remove all + present together in the string. Javascript Program

Input string =’a+++b++c+’; Output String=a+b+c+ Source Code

Given a string str, create a string consisting of all the non-alphabets and non-digits.

JavaScript code