Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $(document).ready(function () {
  2. switch (this.operator) {
  3. case '+':
  4. this.ResultAns += this.first + this.second;
  5. break;
  6. case '-':
  7. this.ResultAns += this.first - this.second;
  8. break;
  9. case '*':
  10. this.ResultAns += this.first * this.second;
  11. break;
  12. case '/':
  13. this.ResultAns += this.first / this.second;
  14. break;
  15. }
  16.  
  17. first: string = "";
  18. second: string = "";
  19. operator: string = "";
  20. ResultAns: number;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement