MCPcopy Create free account
hub / github.com/AyushSaini00/60minuteJavaScript / chooseOperation

Method chooseOperation

Calculator/app.js:24–33  ·  view source on GitHub ↗
(operation)

Source from the content-addressed store, hash-verified

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;

Callers 1

app.jsFile · 0.80

Calls 1

computeMethod · 0.95

Tested by

no test coverage detected