Valid Parentheses
Medium · javascript · javascript · stacks
Write solution(str) that returns true if every (, [, { in the string is properly closed and nested, false otherwise.
Sample tests
solution("([{}])") // => trueMedium · javascript · javascript · stacks
Write solution(str) that returns true if every (, [, { in the string is properly closed and nested, false otherwise.
Sample tests
solution("([{}])") // => true