modified the each function

This commit is contained in:
Isah Jacob 2022-10-31 21:31:57 +01:00
parent 94cb07cfc6
commit f1f97f4295
1 changed files with 9 additions and 27 deletions

View File

@ -1,32 +1,14 @@
const add = function(firstValue, secondValue) { function add (numberOne, numberTwo) {
firstValue = 8 return numberOne + numberTwo;
secondValue = 10 }
result = firstValue + secondValue
return result
};
const subtract = function() { function subtract (numberOne, numberTwo) {
return numberOne + numberTwo;;
}
};
const sum = function() { add(0, 0)
add(2, 2)
}; add(2,6)
const multiply = function() {
};
const power = function() {
};
const factorial = function() {
};
// Do not edit below this line // Do not edit below this line
module.exports = { module.exports = {