function XO(str) { let Exes=0; let Ohs=0; for (i=0; i<str.length;i++){ if (str[i].toUpperCase=='X'){Exes+=1} if(str[i].toUpperCase=='O'){Ohs+=1} } if (Exes==Ohs) {console.log(true); return true} else {console.log(false); return false}
-
Notifications
You must be signed in to change notification settings - Fork 0
shahryar102/Exes-and-Ohs-
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published