Daily Coding Challenge - Phone Number Formatter

Tell us what’s happening:

Small edit to the instructions: the given strings are 11 digits in length, not 10. Thanks and I really enjoy these daily challenges. Great job!

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

Challenge Information:

Daily Coding Challenge - Phone Number Formatter

Phone Number Formatter (2025-09-30)

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

Thanks. I created an issue: https://github.com/freeCodeCamp/freeCodeCamp/issues/62427.