Balancing of paranthesis
JavaScript
let string = "[ ( ) [ ( ) ( ] ( )]"
let obj = {
'[': ']'
'(':')'
}
for(let i=0; i < string.length; i++) {
let char = string[i]
}
const result = !middlebracket.length && !smallbracket.length ? true: false
console.log('result', result)