Javascript Certification-Javascript Calculator

Hi, I’ve tried my level best, changed my codes multiple times, but I still fail 1 of the 16 tests that I need to pass in order to submit my code and I am stuck on this error for a few days.

I would be much obliged if someone can correct me and explain what I did wrong and where.

Please find my code here: https://codepen.io/evanemmanuel/pen/PoeBMxa

don’t you need some kinda if() statement in the switch{} statement acting on the - part to deal with * followed by -?

i did mine in jQuery all in the HTML file, which built an array for the equation calculated when equals is clicked. So the array build would deal with *- .

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.