Skip to content

Commit 944d61e

Browse files
#27 - javascript
1 parent e7d3a5e commit 944d61e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Roadmap/27 - SOLID OCP/javascript/duendeintemporal.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ class SimpleCalculator {
2626
}
2727
}
2828

29-
// Usage
3029
const calculator1 = new SimpleCalculator();
31-
console.log(calculator1.calculate('add', 5, 3)); // 8
32-
console.log(calculator1.calculate('divide', 10, 2)); // 5
30+
console.log(calculator1.calculate('add', 856, 30)); // 886
31+
console.log(calculator1.calculate('divide', 220, 4423)); // 0.04973999547818223
3332

3433
//Using Open-Close Principle (OCP)
3534

0 commit comments

Comments
 (0)