replace letters in a string js code example Example: str replace javascript all str.replace(/abc/g, '');