Can you create a calculator with shortest code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you create a calculator with shortest code?

My friend challenged me. I created a very simple one. but now I'm trying to make it smarter and more features.

8th Jun 2017, 5:42 PM
Leesen Sim
Leesen Sim - avatar
1 Answer
+ 2
Is one line of code to short 😝? (Javascript) alert("Answer: "+eval(prompt("Enter Something to Calculate")));
8th Jun 2017, 5:48 PM
Rrestoring faith
Rrestoring faith - avatar