Calculator with onclick method


I’m totally new to javascript. I am trying to make a simple calculator and I’m getting stuck to get a result in the screen above. After entering a number I can’t add a number. It just gives me the next number. How can I make the numbers adding up so I can see the right result?

Need some help with this…

It’s a whole lot e easier to see what’s going on with some code. In this case, where there’s likely a lot of code, consider sharing a link to your code on either a “sandbox site” (like codepen or repl) or a github repo.

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