We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7d3a5e commit 944d61eCopy full SHA for 944d61e
Roadmap/27 - SOLID OCP/javascript/duendeintemporal.js
@@ -26,10 +26,9 @@ class SimpleCalculator {
26
}
27
28
29
-// Usage
30
const calculator1 = new SimpleCalculator();
31
-console.log(calculator1.calculate('add', 5, 3)); // 8
32
-console.log(calculator1.calculate('divide', 10, 2)); // 5
+console.log(calculator1.calculate('add', 856, 30)); // 886
+console.log(calculator1.calculate('divide', 220, 4423)); // 0.04973999547818223
33
34
//Using Open-Close Principle (OCP)
35
0 commit comments