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