Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- switch (this.operator) {
- case '+':
- this.ResultAns += this.first + this.second;
- break;
- case '-':
- this.ResultAns += this.first - this.second;
- break;
- case '*':
- this.ResultAns += this.first * this.second;
- break;
- case '/':
- this.ResultAns += this.first / this.second;
- break;
- }
- first: string = "";
- second: string = "";
- operator: string = "";
- ResultAns: number;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement