Javascript Bracket Validator 🙂



This is a fun piece of code in dedication to al those passionate old JS Devs out there who used to spend hours cause of the dreaded missing bracket error :laughing:



That's quite nice. However, my 2 cents.

  • I deleted the bracket on line 10, it returned Syntax Error: Missing bracket. (but doesn't tell me where)

Not that big a deal, until

  • I also deleted the bracket on line 7, it returned Syntax Clean. Why?


Really Appreciate your feedback,

working to make the code return the line of which the braket is missing.

For the other problem,.

I will try buff up the logic of the code, in this case my theory was that in every javascript code theyere must be an even number of opening and closing brackets