We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c44918 commit 58b3ea2Copy full SHA for 58b3ea2
Programs/Exercise/check.js
@@ -0,0 +1,12 @@
1
+/*
2
+Write a JavaScript program to check two numbers
3
+and return true if one of the number is 100 or
4
+ if the sum of the two numbers is 100
5
+*/
6
+
7
8
+const equalto100 =(a,b)=> a===100 || b===100 || (a+b)===100
9
10
+console.log( equalto100(100,0))
11
+console.log(equalto100(50,50))
12
+console.log(equalto100(0,100))
0 commit comments