Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Write a function called findGreatest that accepts three numbers as arguments and returns the greatest of the three numbers using if-else statemets

let num1 = 5;
let num2 = 6;
let num3 = 7;

// Write your function here


// On the next line we call the function
console.log(findGreatest(num1, num2, num3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment