DEV Community

Discussion on: Daily Challenge #179 - Hide Phone Numbers

Collapse
 
aminnairi profile image
Amin

Nice short solution!

If I'm being correct, for the string "328 6587120", the expected output should be "328 6XXXXXX".

But in your case, the output would be "328 6XX-XXXX".