how to replace doube with single quote in string js code example Example: js replace quotes mystring = mystring.replace(/["']/g, "");