+ 2

when should we use default argument

2nd Feb 2017, 9:36 AM
priyanka thakur
priyanka thakur - avatar
2 Antworten
+ 1
Thanks
2nd Feb 2017, 10:26 AM
priyanka thakur
priyanka thakur - avatar
0
when you have multiple arguments and there is a possibility of one argument not being equal to any statements. the default would be able to return true and you can execute what ever code you want for the sanario of a argument not equaling any statements. this makes it so your code will have A lot lower chance of being glitchy or bugged
2nd Feb 2017, 10:25 AM
Ian
Ian - avatar