Im currently practicing some basics again just for fun, i havent had much chanse to code since i work seasonal job for 12 hours a day. So my question is, with code like this:
function myFunction(num1, num2) {
if (num1 === num2) {
return "cool";
} else {
return "false";
}
return "Fail";
}
myFunction(20, 10);
return “Fail” will only return Fail message when if statement doesnt make it which means not returning eighter “cool” or “false”. Am i correct?