Skip to content

Commit 42ff408

Browse files
committed
remove old solution
1 parent 38c0a36 commit 42ff408

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

check_nums.js

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,40 +20,13 @@
2020
***************************************************************************************/
2121

2222
const check_nums = (num1, num2) => {
23-
if (!num1 || !num2 || num1===num2) return '-1'
24-
return num2>num1 ? 'true' : 'false'
23+
if (!num1 || !num2 || num1 === num2) return '-1'
24+
return num2 > num1 ? 'true' : 'false'
2525
}
2626

2727

2828
console.log(check_nums(1, 3)) //true
2929
console.log(check_nums(5, 7)) //true
30-
console.log(check_nums(7,5)) //false
30+
console.log(check_nums(7, 5)) //false
3131
console.log(check_nums(7)) //-1
3232
console.log(check_nums()) //-1
33-
34-
35-
36-
37-
38-
39-
40-
41-
42-
43-
44-
45-
46-
47-
48-
49-
// function CheckNums(num1,num2) {
50-
51-
// if (num1 === num2) {
52-
// return "-1";
53-
// } else if (num2 > num1) {
54-
// return true;
55-
// } else {
56-
// return false;
57-
// }
58-
59-
// }

0 commit comments

Comments
 (0)