Review my Javascript Calculator please

Review my Javascript Calculator please
0

#1

Hello Coders,

Here’s the link - https://codepen.io/jfar/full/JLKyYX/
Any feedback is highly appreciated; related to my code, design, anything. I tried to use the FCC Test Suite for the unit tests and was not able to pass most of the tests, though I’m not sure why. If anyone can figure it out, please let me know.

Thanks


#2

I would post your troubleshooting question in the HELP section so it will be addressed. Many “Project Feedback” posts seem to go unreplied-to.


#3

I will help you on one of the failing tests.

#8. As I input numbers, I should be able to see my input in the element with the id of “display”

When I input numbers, they appear in the div with id=“dispEquation” and not the div with id=“display”.


#4

I really like it. There seems to be a problem with rounding (a usual JS problem with floating point numbers) but overall very nice. :+1:


#5

Thank you for getting that to my attention. Maybe that is affecting the other unit tests also. I am going to modify it and see if that works.


#6

Thank you for your feedback. I appreciate it.