Help With Javascript Calculator, Please?

I’m passing 12 of 16 tests. Here is my code so far:

[https://codepen.io/meredithkirby/pen/qBZgQRd]

I’m failing tests 7, 10, 11, and 13. I’m still trying to figure out the last three, but I can’t figure out why I’m failing 7. It seems like I should be passing that one.

Any help would be appreciated.

Hello~!

You are using an input element for your display. The tests are written to detect if the #display element is an input, and if it is the tests look for a value attribute. Unfortunately, because you are using the placeholder attribute for the 0 when I press the clear button, the test fails erroneously: it detects an empty value.