MCPcopy Create free account
hub / github.com/codemistic/Web-Development / handleMath

Function handleMath

Calculator app/calculator.js:23–33  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

21 }
22}
23function handleMath(value){
24 const intBuffer = parseInt(buffer);
25 if(runningTotal === 0){
26 runningTotal = intBuffer;
27 }
28 else{
29 flushOperation(intBuffer);
30 }
31 previousOperator = value;
32 buffer = "0";
33}
34
35function handleNumber(value){
36 if(buffer === "0"){

Callers 1

handleSymbolFunction · 0.85

Calls 1

flushOperationFunction · 0.85

Tested by

no test coverage detected