Now on Omarchy: read the manual without leaving your desktop
Your code JavaScript
// Write redactFirstPhone(str): replace only the FIRST \d{3}-\d{3}-\d{4}
// match with "***".
function redactFirstPhone(str) {

}

// Write redactAllPhones(str): replace EVERY \d{3}-\d{3}-\d{4} match with "***".
function redactAllPhones(str) {

}