Front End Development Libraries Projects - Build a JavaScript Calculator

I am getting a Script Error and I don’t know what to do.

I have one last test to pass on my JavaScript Calculator project
( I should be able to perform any operation (+, -, *, /) on numbers containing decimal points),
but the crazy thing is I think my calculator already passes the test functionally. When I run the test on my codepen, I keep getting ‘Script Error’. Can anyone help with this?

This is a link to my codepen calculator project:(https://codepen.io/lawlessIndi/pen/BaPBGNp)

Challenge: Front End Development Libraries Projects - Build a JavaScript Calculator

Link to the challenge:

If I click divide and then multiply the operator does not change to multiply and vise versa.

1 Like

Thank you so much. i will check that out now.

I solved it! The eval() function i used in calculating the string of numbers was why the test was not passing. I instead imported mathjs library and used it in evaluating my string of numbers.