Balancing of paranthesis

by amrendra kumar

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)