I want to develop a calculator in javascript, like the one in microsoft;
I cant get around the logic of it.
Here is my problem. If I type in a number then I have to wait for an operator then I have to wait for another number to be typed in, Then I have to wait for the equals sign to evaluate the program.
How can this be done.
Hope you can understand my question?
Thanks
I cant get around the logic of it.
Here is my problem. If I type in a number then I have to wait for an operator then I have to wait for another number to be typed in, Then I have to wait for the equals sign to evaluate the program.
How can this be done.
Hope you can understand my question?
Thanks
Comment