Let's assume that we have the following string:
let string = `Erik exclaimed, "I am a good developer. She responded, 'No, you are not'."`;
To replace both single and double quotation marks:
let noQuotationString = string.replaceAll(`"`, ``).replaceAll(`'`, ``); // Erik exclaimed, I am a good developer. She responded, No, you are not.
Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.