+ 1
Please can someone help write codes for creating a mathematical calculator using Java Script.
codes for creating a calculator
1 Resposta
+ 1
Break the problem up into sections.
Find a simple calculator and mimic this in HTML, with HTML buttons for the actual buttons etc.
Then create callbacks for each button, that do the correct thing.
It will take some planning, because you'll need to understand how a simple calculator works. Most buttons work differently based on the previous context, e.g. pressing button 6. If AC precedes that press, it's different than if 4 and plus were pressed beforehand.