JavaScript calculator test fail

I don’t understand why the project doesn’t pass test numbers 9, 12, 13 and 14. But it seems working fine. Appreciate any suggestions.

Here is my CodePen link

At a guess, the test is comparing the value in the #display element to the test results. Where you’re using #equation and #answer for them, if the display contains both those, then the textContent of #display is the text in both of those elements, which is failing.

1 Like

Thanks for your reply. I’ll check.

Thanks @snowmonkey. I passed the test.