Build a JavaScript Calculator Testing Bug

Hi, dear freeCodeCamp team!

Good day!
Here’s my code for Build a JavaScript Calculator:

The test result showed 5 failed parts.
After testing one by one, I didn’t get same failure results.
From my test, everything’s right.

Can you support me to fix this issue.
Looking forward to your reply soon.
Thank you. :blush:

Best regards,
Lila

none of the tests passed on my side its as if its not running the tests



Those are the 4 failed test results showed on my side.

I got the same test results, maybe something wrong with the tests?

Idk… I tried to feed the failed test conditions to the calculator, but nothing wrong like the test result.

I faced this before.

Your code is fine. Try this in your index.js. Then you would’ve passed.

import ReactDOM from "react-dom";
import App from "./App";
const rootElement = document.getElementById("root");

ReactDOM.render(<App />,  rootElement)
1 Like


Hi, YC!

Sorry for the late reply.
I tried what you taught me, and it works!!
Thank you for your help! :muscle:t2: :blush:

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