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