Answers for "Find max of two values, find max of three values"

1

Find max of two values, find max of three values

//find max of two values/ find max of Three values
let business = 30000;
let job = 10000;
let entrepreneur = 90000;
function whoisrich(){
    if (business<job && entrepreneur<job) {
        return "Job is best"
    }
    else if (job<business && entrepreneur<business) {
        return "Do business cause it is bigger"
    }
    else{
        return "Be an entrepreneur it is the biggest";
    }
}
console.log(whoisrich(entrepreneur))
Posted by: Guest on August-07-2021

Code answers related to "Find max of two values, find max of three values"

Browse Popular Code Answers by Language