Build a JavaScript Calculator Story #8, 11, 13

It is working correctly on the screen,
Story #8, 11, and 13 fail the test.

Why is this?

My codepen URL

Hi @YukaKoshiba

When I input numbers into the app, only the last digit appears in the #display element. What is the #eqation element?

Since the #display element only accepts one digit it a time, it will fail the two consecutive decimal points tests.

Your code needs to handle the case when the second number for a multiplication operation is negative.

For next time, describe the issue in your own words. Learning to communicate problems is a part of becoming a web developer.

Happy coding

Thank you for your kind reply.
I apologize for the delay in replying due to the Holiday.

I misunderstood the specifications due to my lack of reading comprehension.
Thanks to you, I realized my mistake in understanding the specifications.
And I was able to pass these problem.

Thank you very much for your kindness!!

1 Like