Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
function telephoneCheck(str) {
let regex=/(^1?)(-?)(\s?)(\(?)([0-9][0-9][0-9])(\))(-?)(\s?)([0-9][0-9][0-9])(-?)(\s?)([0-9][0-9][0-9][0-9]$)/
return regex.test(str);
}
console.log(telephoneCheck("555-555-5555"));
**Your browser information:**
User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0
Challenge: Telephone Number Validator
Link to the challenge: