function myFunction() {
if (condition)
return a;
return b;
}
In this case if the condition is true, both a and b will be returned or only a is returned.
function myFunction() {
if (condition)
return a;
return b;
}
In this case if the condition is true, both a and b will be returned or only a is returned.