Hello I have a string value of '(000) 000-0000' and I need to convert it into a string value of '+10000000000' in the international phone format. How do I go about that? Thanks. EDIT: Thank you for the quick reply. I forgot to include my previous code snippet that wasn't working for me.
const phoneNumber = '(000) 000-0000';
const convertedPhoNum = phoneNumber.replaceAll('\\D+', '');
const intPhoneNumber = '+1' + convertedPhoNum;
console.log(intPhoneNumber)