how to add a localstorage for my Calculator?
问题 I have to work on a calculator. I got everything i need. The only thing is, I have to add a LocalStorage under my Result. So the Calculator adds everytime the result, untill i delete the session. For example: "1+1=2," 2*2=4, 8/8=1 Localstorage: 2,4,1 function clear() { number1.value = ""; number2.value = ""; } function clearresult() { result.innerText = ''; } function calc() { var number1 = parseFloat(document.getElementById('number1').value); var number2 = parseFloat(document.getElementById(