removed redundant comments

This commit is contained in:
Jared Ramon Elizan 2022-07-15 13:06:26 +08:00
parent a136f06af8
commit 367e9405dd
1 changed files with 5 additions and 17 deletions

View File

@ -1,22 +1,8 @@
/*function greater(num1, num2){
if(num1 > num2){
return num1;
} else if(num2 > num1){
return num2;
}
}
function least(num1, num2){
if(num1 < num2){
return num1;
} else if(num2 < num1){
return num2;
}
}
*/
const sumAll = function(num1, num2) {
let sum = 0;
if( Math.sign(num1 || num2) !== -1 && typeof(num1 && num2) === "number" ){
const least = (num1,num2) =>{
if(num1 < num2){
return num1;
@ -40,6 +26,8 @@ const sumAll = function(num1, num2) {
} else{
return "ERROR";
}};
console.log(sumAll(1, 4));
// Do not edit below this line
module.exports = sumAll;