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) {
firstValue = 8
secondValue = 10
result = firstValue + secondValue
return result
function add (numberOne, numberTwo) {
return numberOne + numberTwo;
}
function subtract (numberOne, numberTwo) {
return numberOne + numberTwo;;
}
};
const subtract = function() {
};
const sum = function() {
};
const multiply = function() {
};
const power = function() {
};
const factorial = function() {
};
add(0, 0)
add(2, 2)
add(2,6)
// Do not edit below this line
module.exports = {