how to create history icon function in calculator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to create history icon function in calculator

i want calculation history in calculator when pressed history icon

18th Jan 2021, 11:12 AM
Rajeshwari Chinnadurai
Rajeshwari Chinnadurai - avatar
1 Answer
+ 1
Just push the calculations in an array and whenever someone clicks on that history icon, iterate over the array values and display them
18th Jan 2021, 1:19 PM
Abhay
Abhay - avatar