I've been struggling to replace every double quote in a string with a single quote. Here's what I have tried:
const str = '1998: merger by absorption of Scac-Delmas-Vieljeux by Bolloré Technologies to become \"Bolloré.';
console.log(str.replace(`"`, `'`));
However, the output is:
1998: merger by absorption of Scac-Delmas-Vieljeux by Bolloré Technologies to become 'Bolloré"
I've attempted multiple other solutions but none seem to work. Any suggestions?