Please can someone help write codes for creating a mathematical calculator using Java Script. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Please can someone help write codes for creating a mathematical calculator using Java Script.

codes for creating a calculator

10th Apr 2018, 12:42 PM
Aneke Chike
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.
10th Apr 2018, 1:44 PM
Emma