When the #user-input element contains a valid US number and the #check-btn element is clicked, the #results-div element should contain the text "Valid US number: " followed by the number.
Failed:36. When the #user-input element contains an invalid US number and the #check-btn element is clicked, the #results-div element should contain the text "Invalid US number: " followed by the number.
I cant pass test 35 and 46. Please tell me what happening
There is bug in the tests. If you change the following variables and their occurrences in code, everything will pass: input → userInput check → checkBtn result → resultsDiv
Has this been reported to fCC folks? I’m doing this test today and running into the same bug. I pass the first 34 tests, but not the lasts ones (which are just more generic versions off the previous tests).
I just got to this exact point and was confused too. are there additional ways to type a phone number that they want us to account for, but that are too secret to specify?
Also, I keep getting these errors on console even when not having a “resultsDiv” variable.
// running tests
35. When the #user-input element contains a valid US number and the #check-btn element is clicked, the #results-div element should contain the text "Valid US number: " followed by the number.
36. When the #user-input element contains an invalid US number and the #check-btn element is clicked, the #results-div element should contain the text "Invalid US number: " followed by the number.
// tests completed
// console output
[ReferenceError: resultsDiv is not defined]
[ReferenceError: resultsDiv is not defined]
Can you open a new topic for your query or if you have opened a topic already please update that with your updated code. I’ll go ahead and close this thread now.