(operation)
| 22 | } |
| 23 | |
| 24 | chooseOperation(operation){ |
| 25 | if(this.operation === '') |
| 26 | return; |
| 27 | if(this.previousOperant !== ''){ |
| 28 | this.compute(); |
| 29 | } |
| 30 | this.operation = operation; |
| 31 | this.previousOperant = this.currentOperant; |
| 32 | this.currentOperant = ''; |
| 33 | } |
| 34 | |
| 35 | compute(){ |
| 36 | let computation; |