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