Build a JavaScript Calculator (Solved)

Build a JavaScript Calculator (Solved)


Tell us what’s happening:

Here is a link to my codepen:

I’ve been working on this project for a while and have a pretty good understanding of how everything works. However, tests 13 and 16 seem to not succeed and I am not sure why. I intend on stepping away for a while to get fresh eyes on it but the issues don’t seem to make sense.

test 13 claims a script error despite my calculator following the guidelines.

test 16 claims I do not have at least 4 decimal places when I get decimal places far exceeding 4 if the calculator performs 2 / 7

I solved this no need to respond.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge: