Advertisement
Guest User

Kakakak

a guest
Oct 23rd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. // Coder By EXPLOR5
  2.  
  3.  
  4.  
  5. function clr()
  6. {
  7. var a=document.getElementById("txt");
  8. a.value="";
  9. }
  10. function add(n)
  11. {
  12. var a=document.getElementById("txt");
  13. a.value=a.value+n;
  14. }
  15.  
  16. function calculate()
  17. {
  18. a=document.getElementById ("txt");
  19. a.value=eval(a.value);
  20. }
  21.  
  22.  
  23. function back() {
  24. var v =document.getElementById("txt").value; document.getElementById("txt").value = v.substr(0, v.length - 1);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement