Looking to remove quotes from a variable:
const sup = product[0]; // product[0] holds the value '8876532'
I attempted two methods to remove the quotes but they were unsuccessful:
sup.replace(/"/g, "");
and
sup.replace(/["']/g, "");
If anyone has any suggestions on how to achieve this, I would greatly appreciate it!