We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5bacb6 commit 6b3b642Copy full SHA for 6b3b642
1 file changed
Easy-Programming-Challenges/ExOh.js
@@ -0,0 +1,13 @@
1
+function ExOh(str) {
2
+
3
+ var count1=0;
4
+ var count2=0;
5
6
+ for(var i in str){
7
+ if (str[i] =="x")count1++;
8
+ if (str[i] == "o") count2++;
9
+ }
10
11
+ if (count1 == count2) return true;
12
+ return false;
13
+}
0 commit comments