+ 28
How to create history function in calculator ?
I want to add history function in calculator means when user press the history icon then it should be show the history of calculation but I don't know how to do it... can anyone help me plz give the answer with solid code 🙏
19 odpowiedzi
+ 14
Abhinav
ÑⲒꞄBⲎⲀY
Prashanth Kumar [back again]
Prasant
Tharul Nejana
Eashan Morajkar
Rohit Singh
Thanks for your suggestions but
I have made exactly the code I wanted ...
https://code.sololearn.com/WrrXBh7pRhSJ/?ref=app
+ 11
save every state in an array.
here is a working solution.
ask me in code comment if you didn't got anything.
https://code.sololearn.com/WC6ata80i03P/?ref=app
+ 10
I think you don't understand what is my problem....I will take help from someone else and thanks for your response 😊 🙏
+ 10
I know that... And I also know the JavaScript , not too much but yes I know . And I got a solution just wait for my next code 🙂
+ 10
Prashanth Kumar [back again] Thank you.... but it is not show history properly as I want... But I got a solution. I will show you in my next code how I want the history.
+ 8
HTML
+ 8
Yes means with the help of JavaScript and CSS
+ 7
Safura Patel thats nice
+ 7
Safura Patel nice 👌🏻
+ 7
https://code.sololearn.com/WrrXBh7pRhSJ/?ref=app
Nice code 👆
+ 6
+ 4
https://code.sololearn.com/WMNEo80RYFvD/?ref=app
+ 2
You want to create History in Web page
Than you Must Know JavaScript
+ 1
Then you have to first convert the whole calculation into a string and use an array of a stack
+ 1
Well I don't think so you can make a history because you are not doing the calculation
0
Which language?
0
Are you sure about that? Have you made the calculator
0
I think you mean javascript
0
Create an array.
Push the whole calculation into the array every time it's calculating something(I mean when user clicks the = button)