---
title: "Discussion on \"20. Valid Parentheses - JavaScript Solution - by Abu Saleh Faysal\" | Hashnode"
description: "Discussion on \"20. Valid Parentheses - JavaScript Solution - by Abu Saleh Faysal\". An array of parentheses are given. We need to find out if the array contains both opening and closing parentheses or not.\nSteps:\n\nDeclare a variable called \"stack\" and store an empty array.\n\nIterate a for loop over the given array and store the array..."
url: "https://hashnode.com/posts/20-valid-parentheses-javascript-solution-by-abu-saleh-faysal/63e657e302c6f60ef75d075c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [20\. Valid Parentheses - JavaScript Solution - by Abu Saleh Faysal](https://abusalehfaysal.hashnode.dev/20-valid-parentheses-javascript-solution-by-abu-saleh-faysal?utm_source=hashnode&utm_medium=feed)

An array of parentheses are given. We need to find out if the array contains both opening and closing parentheses or not. Steps: Declare a variable called "stack" and store an empty array. Iterate a for loop over the given array and store the array...

Feb 10, 2023 · 2 min read · abusalehfaysal.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#problem-solving](https://hashnode.com/tag/problem-solving)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Abu Saleh Faysal](https://hashnode.com/@AbuSalehFaysal)

@AbuSalehFaysal · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@AbuSalehFaysal)

Software Engineer | Front-End Developer | JavaScript | TypeScript | React | Redux

Experienced software engineer with a demonstrated history of working in several tech startups. Skilled in Front-End Development using Bootstrap, TailwindCSS, JavaScript, TypeScript, React, Redux, Firebase. Strong software professional with a Bachelor of Science focused in Computer Science and Engineering from BRAC University.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
