Hey @frugencefidel
, Thank you for this cool demonstration.
I just noticed an error in your code in Default Function Arguments section.
functionsum(a=5,b=7){returna+b;}// If all arguments are undefined, then pass nothingconsole.log(sum());// 12// If all arguments are not undefinedconsole.log(sum(6,undefined));// 12
The last expression should output 13 not 12
// If all arguments are not undefinedconsole.log(sum(6,undefined));// 13
Hey @frugencefidel , Thank you for this cool demonstration.
I just noticed an error in your code in Default Function Arguments section.
The last expression should output 13 not 12
Thank you for your time. 💖
Thanks for that buddy. I will fix it soon