function addNum(a=0, b=0) { return a + b ; } console.log(addNum()); //1 console.log(addNum(1)); //1 console.log(addNum(1,2)); //3