Skip to content

Instantly share code, notes, and snippets.

@McLarenCollege
Last active May 31, 2021 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McLarenCollege/bd020cd65ae687d0aa4ad64f851ab103 to your computer and use it in GitHub Desktop.
Save McLarenCollege/bd020cd65ae687d0aa4ad64f851ab103 to your computer and use it in GitHub Desktop.

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