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

Method appendNumber

Calculator/app.js:18–22  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

16 }
17
18 appendNumber(number){
19 if(number === '.' && this.currentOperant.includes('.'))
20 return;
21 this.currentOperant = this.currentOperant.toString() + number.toString();
22 }
23
24 chooseOperation(operation){
25 if(this.operation === '')

Callers 1

app.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected