mirror of
https://github.com/kevin-DL/complete-node-bootcamp.git
synced 2026-01-12 03:15:12 +00:00
Initial commit 🚀
This commit is contained in:
27
2-how-node-works/final/test-module-1.js
Normal file
27
2-how-node-works/final/test-module-1.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// class Calculator {
|
||||
// add(a, b) {
|
||||
// return a + b;
|
||||
// }
|
||||
|
||||
// multiply(a, b) {
|
||||
// return a * b;
|
||||
// }
|
||||
|
||||
// divide(a, b) {
|
||||
// return a / b;
|
||||
// }
|
||||
// }
|
||||
|
||||
module.exports = class {
|
||||
add(a, b) {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
multiply(a, b) {
|
||||
return a * b;
|
||||
}
|
||||
|
||||
divide(a, b) {
|
||||
return a / b;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user