How to make a calculator using jacascript prompt command | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make a calculator using jacascript prompt command

10th Feb 2017, 4:33 PM
Bittu Garg
Bittu Garg - avatar
2 Answers
+ 1
Why use prompt() function? It's vad practice, not user friendly... Use 'innerHTML' property on a basic html page instead, and the possibilities of html form, <input>s tag and their 'value' attribute...
10th Feb 2017, 4:36 PM
visph
visph - avatar
0
Check out this example code adapted from a 'prompt' version: https://code.sololearn.com/WzS1Rzioz166/#
10th Feb 2017, 4:43 PM
visph
visph - avatar