modified the each function
This commit is contained in:
parent
94cb07cfc6
commit
f1f97f4295
|
@ -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
|
|
||||||
|
|
||||||
|
function subtract (numberOne, numberTwo) {
|
||||||
|
return numberOne + numberTwo;;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
add(0, 0)
|
||||||
|
add(2, 2)
|
||||||
const subtract = function() {
|
add(2,6)
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
const sum = function() {
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
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 = {
|
||||||
|
|
Loading…
Reference in New Issue