Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

javascript if else exercises

function greaterNum(num1, num2) {
    if (num1 > num2) {
        return num1;
    } else {
        return num2;
    }
}

console.log(greaterNum(5, 10));
Source by www.teaching-materials.org #
 
PREVIOUS NEXT
Tagged: #javascript #exercises
ADD COMMENT
Topic
Name
1+5 =