javascript delete characters from an var code example Example: javascript remove character from string mystring.replace(/r/g, '')