|
@@ -41,12 +41,9 @@ function sum3(firstNum,secondNum,thirdNum){
|
|
if(thirdNum===undefined){
|
|
if(thirdNum===undefined){
|
|
thirdNum=0
|
|
thirdNum=0
|
|
}
|
|
}
|
|
- else if(secondNum===undefined){
|
|
|
|
|
|
+ if(secondNum===undefined){
|
|
secondNum=0
|
|
secondNum=0
|
|
}
|
|
}
|
|
- else if (thirdNum===undefined){
|
|
|
|
- thirdNum=0
|
|
|
|
- }
|
|
|
|
|
|
|
|
result = (firstNum + secondNum + thirdNum)
|
|
result = (firstNum + secondNum + thirdNum)
|
|
console.log(result)
|
|
console.log(result)
|