{"size": 675, "ext": "js", "max_stars_repo_path": "javascript/stack-queue-brackets/stack-queue-brackets.js", "max_stars_repo_name": "DinaSami/401-data-structures-and-algorithms", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "javascript/stack-queue-brackets/stack-queue-brackets.js", "max_issues_repo_name": "DinaSami/401-data-structures-and-algorithms", "max_issues_repo_issues_event_min_datetime": "2021-07-11T05:45:39.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-11T05:45:39.000Z", "max_forks_repo_path": "javascript/stack-queue-brackets/stack-queue-brackets.js", "max_forks_repo_name": "DinaSami/401-data-structures-and-algorithms", "max_forks_repo_forks_event_min_datetime": "2021-07-04T21:20:19.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-04T21:20:19.000Z"}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 24.1071428571, "max_line_length": 98, "alphanum_fraction": 0.4222222222}
function validateBracketse(str) {
    let bracket = {
      '(': ')',
      '[': ']',
      '{': '}'
    }
    let arr = [];
    for (char of str) {
      if (bracket[char]) {
        // console.log(bracket[char])
        arr.push(bracket[char])
        // console.log(arr)
        // console.log('if',char)
  
      } else if ((char >= 'a' && char <= 'z') || (char >= 'A' && char <= 'Z') || (char === ' ')) {
        // console.log('else if',char)
        // continue;
      }
       else {
        if (arr.pop() != char) {
          // console.log('hihi',char)
          return false;
        }
      }
    }
    return (!arr.length)
  }
  module.exports=validateBracketse;