Calculator Works, But One Test Still Failing?

I’ve built a calculator for the Front End Dev Libraries course. It works perfectly, from what I can tell, if overly utilitarian in its styling. But one of the sixteen tests is failing and doesn’t really explain why. Normally the failed test has a clue for why it’s failed, but not here that I can see. Do ya’ll have any ideas?

fCC’s Error Message:

14. Pressing an operator immediately following "=" should start a new calculation that operates on the result of the previous evaluation
Script error. (:0)
Error: Script error. (:0)
    at r.onerror (
    at Array.forEach (<anonymous>)
    at te (
    at n.<anonymous> (
    at (
    at r.Qg.runTest (
    at o (

My project CodePen:
Link here so you can have a look:

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36

Challenge: Build a JavaScript Calculator

Link to the challenge:

Any help greatly appreciated!

Solved here.

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