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