8000 Pass the 'subtract' test · MonsWriter/javascript-exercises@15395b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 15395b5

Browse files
committed
Pass the 'subtract' test
1 parent a8ab07c commit 15395b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

08_calculator/calculator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const add = function(firstNumber, secondNumber) {
22
return firstNumber + secondNumber;
33
};
44

5-
const subtract = function() {
6-
5+
const subtract = function(firstNumber, secondNumber) {
6+
return firstNumber - secondNumber;
77
};
88

99
const sum = function() {

0 commit comments

Comments
 (0)
0