Phone Number Formatter JavaScript
How to format a string or number to a US phone number in JavaScript. Solution for formatting an input to a US phone number format in JavaScript. Write a function that accepts a string of numbers or a number and converts it to a US phone number format.