Skip to content
Snippets Groups Projects
Commit 324b7bba authored by Raed's avatar Raed
Browse files

Fix error in addition implementation

parent fc77348b
Branches master
No related tags found
No related merge requests found
Pipeline #7099 canceled
...@@ -11,7 +11,7 @@ function Compute() { ...@@ -11,7 +11,7 @@ function Compute() {
*/ */
// TODO: modify with the correct operator // TODO: modify with the correct operator
// We intentionally kept this mistake: * operator instead of + operator // We intentionally kept this mistake: * operator instead of + operator
this.add = (a, b) => Number(a) * Number(b); this.add = (a, b) => Number(a) + Number(b);
/** /**
* @method sub * @method sub
* @desc Calculate the difference between two numbers * @desc Calculate the difference between two numbers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment