re: Daily Challenge #29 - Xs and Os VIEW POST

FULL DISCUSSION
 

Hmmm... Something like this might work in JavaScript

const checkXO = str => str.match(/x/gi).length == str.match(/o/gi).length
code of conduct - report abuse