How can we make a calculator with the help of html ,CSS ,JavaScript ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How can we make a calculator with the help of html ,CSS ,JavaScript ?

a simple way

22nd Nov 2018, 3:15 PM
Aman Tiwari
Aman Tiwari - avatar
9 Answers
22nd Nov 2018, 4:33 PM
Serhat İbin
Serhat İbin - avatar
+ 9
https://code.sololearn.com/WuoMERu5PPMB/?ref=app
27th Nov 2018, 12:40 PM
Lawz
Lawz - avatar
26th Nov 2018, 2:28 PM
Ikechukwu Okonkwo
Ikechukwu Okonkwo - avatar
+ 5
https://code.sololearn.com/W0c94TBvV8aK/?ref=app
22nd Nov 2018, 3:29 PM
BroFar
BroFar - avatar
+ 4
Making calculator with the help of JavaScript is very easy You can take guidance from this -- https://code.sololearn.com/W2J8H89mUb07/?ref=app
2nd Jan 2019, 1:48 PM
Mrityunjay
Mrityunjay - avatar
+ 4
Thanks to all of you
11th Jul 2019, 4:29 AM
Aman Tiwari
Aman Tiwari - avatar
+ 3
Very good
26th Nov 2018, 2:47 PM
Adama Saine
+ 2
The simplest way is to use js eval function. Assuming user entered some expression, then the answer will be var res = eval(expression)
24th Nov 2018, 11:24 PM
Roman Kopanskyy
+ 2
yes
26th Nov 2018, 12:07 PM
DHARMRAJ KUMAR
DHARMRAJ KUMAR - avatar