Javascript calculator

in my project, i cant deal with two operators beeing the second a minus sign, like this: 5*-2 should give -10, it gives me NaN… anyone can help?

the codepen link is: Calculator (codepen.io)

The first step in solving this issue is to understand where exactly the problem is. Do you know this yet? If not, do you have any ideas about how you could go about finding it?

1 Like

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