I'm trying to see what, inside a script of 500 lines, is messed up. It was written by a previous developer so I was trying to see if there was any way to validate the syntax (to make sure he's not missing something silly like a semi-colon somewhere).
Are there any software or web apps out there for this? After searching the web I found JSLint but it's too strict on the validation. For example, it says this is an error:
It tells me: "Use the array literal notation []."
As I understand it, there is nothing wrong with declaring the array the aforementioned way. Using [] was the "old" way of doing it.
Thanks!
Are there any software or web apps out there for this? After searching the web I found JSLint but it's too strict on the validation. For example, it says this is an error:
Code:
var credits = new Array();
As I understand it, there is nothing wrong with declaring the array the aforementioned way. Using [] was the "old" way of doing it.
Thanks!
Comment