if
statement has an open {}
close brackets
if(example){
return example;
}else{
return example;
}
if
statement without open {}
close brackets
if(example)
return example;
else
return example;
Can anyone explain to me about the pros and cons of using them? Thanks in advance :)