how to remove a char from a string in jas code example Example: javascript remove character from string mystring.replace(/r/g, '')