Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function greaterNumber(input) {
- let firstDigit = Number(input[0]);
- let secondDigit = Number(input[1]);
- if (firstDigit > secondDigit) {
- console.log(firstDigit);
- } else {
- console.log(secondDigit)
- }
- }
- greaterNumber(["5", "3"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement