How can I make Javascript check an array and make sure that there\'s no error committed after the comma separating each element of the array .. For example a user may form an ar
Use a static code analyzer such as JSLint or JSHint.
The latter is available as a JavaScript library in addition to the web-hosted flavor.