popovIliya

March-2022-Conditional Statements - Lab -Greater Number

Mar 5th, 2022
1,221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function largerNumber(input){
  2.  let a = parseInt(input[0]);
  3.  let b = parseInt(input[1]);
  4.  if(a > b){
  5.    console.log(a);
  6.  }else{
  7.      console.log(b);
  8.  }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment