How can a generic program be implemented in JavaScript to find and return the number of unbalanced parentheses in a given string?
input1: '()))' output1: 2
input2: '(())' output2: 0
input3: '))((' output3: 4
For further actions, you may consider blocking this person and/or reporting abuse
Emmanuel Eneche -
Paulund -
Mark Smith -
Thomas Desmond -
Top comments (0)