Guest User

Untitled

a guest
Feb 22nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. function largestOfThree (x, y, z) {
  2. if (x >= y) {
  3. return x;
  4. } else if (x <= y) {
  5. if (y >= z) {
  6. return y
  7. } else if (y <= z) {
  8. return z
  9. }
  10. }
  11. }
  12.  
  13. largestOfThree(3, 2, 1)
Add Comment
Please, Sign In to add comment