What is the code for back button in javascript calculator...?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the code for back button in javascript calculator...??

https://code.sololearn.com/WHm48M4vbM9c/?ref=app

10th Feb 2019, 5:30 PM
Onkar Sharma
Onkar Sharma - avatar
4 Answers
+ 2
Please share your code via code playground, so we (or just me) will be able to help you
10th Feb 2019, 6:47 PM
Maneren
Maneren - avatar
+ 2
Here it is: function back (){ var txt = document.getElementById("txt").value; txt = txt.slice(0,-1); document.getElementById("txt").value = txt; }
11th Feb 2019, 6:53 AM
Maneren
Maneren - avatar
0
Thankx for helping me...
11th Feb 2019, 7:06 AM
Onkar Sharma
Onkar Sharma - avatar
0
You're welcome
11th Feb 2019, 2:32 PM
Maneren
Maneren - avatar