Can I get some help on a javascript project?
Posted
by
HenryOrrin
on Super User
See other posts from Super User
or by HenryOrrin
Published on 2012-06-10T22:24:11Z
Indexed on
2012/06/10
22:42 UTC
Read the original article
Hit count: 168
I'm learning javascript and I thought it would be fun to build a "simple" calculator. I spent a few hours coding, and implementing the functions, but it only works partially. Can one of you look at my code and try and figure out what's wrong? The Calculator.zip Here's some explanation of the issues:
- the add(), subtract(), multiply(), and divide() methods work partially, not at all, or don't do as they're supposed to..
- sometimes the 0 wont clear when the replaceDisplay() method evaluates the screen.
If it helps, I'm also using jquery, so keep that in mind. Thank you!
© Super User or respective owner