Home>replace() JavaScript String Method>Edit It: Replace 'CodeSweetly' with 'and I love CodeSweetly!'Edit It: Replace 'CodeSweetly' with 'and I love CodeSweetly!'This code shows how to replace a string with another string.See it on StackBlitz