We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3b5661 commit f0bc0f2Copy full SHA for f0bc0f2
1 file changed
js-and-ts/robot.ts
@@ -2,8 +2,8 @@
2
import { Formatter } from './format.js';
3
4
interface Robot {
5
- name: String,
6
- currentComputation: Number
+ name: String;
+ currentComputation: Number;
7
}
8
9
class Robot {
@@ -18,13 +18,19 @@ class Robot {
18
let computedValue = 0;
19
switch(operation) {
20
case '+':
21
- computedValue = value + 10
+ computedValue = value + 10;
22
+ break;
23
case '-':
- computedValue = value - 10
24
+ computedValue = value - 10;
25
26
case '/':
- computedValue = value / 10
27
+ computedValue = value / 10;
28
29
case '*':
- computedValue = value * 10
30
+ computedValue = value * 10;
31
32
+ default:
33
+ console.log("Does not compute!!")
34
35
this.currentComputation = computedValue;
36
0 commit comments