(intBuffer)
| 7 | }); |
| 8 | |
| 9 | function flushOperation(intBuffer){ |
| 10 | if(previousOperator === "+"){ |
| 11 | runningTotal += intBuffer; |
| 12 | } |
| 13 | else if(previousOperator === '-'){ |
| 14 | runningTotal -= intBuffer; |
| 15 | } |
| 16 | else if(previousOperator === "×"){ |
| 17 | runningTotal *= intBuffer; |
| 18 | } |
| 19 | else{ |
| 20 | runningTotal /= intBuffer; |
| 21 | } |
| 22 | } |
| 23 | function handleMath(value){ |
| 24 | const intBuffer = parseInt(buffer); |
| 25 | if(runningTotal === 0){ |
no outgoing calls
no test coverage detected