Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // error messages below from running http://www.jslint.com on 15nov2011 at 20:15
- /*jslint maxerr: 50, indent: 4 */
- var a;
- //0 pass
- a = ["a",
- "b",
- "c"
- ];
- //1 pass
- a = ["a",
- "b",
- "c"
- ];
- //2 fail
- a = ["a",
- "b",
- "c"
- ]; // Problem: Expected ']' at column 5, not column 1.
- //3 pass
- a = [
- "a",
- "b",
- "c"
- ];
- //4 fails
- a = [
- "a",
- "b",
- "c"
- ]; // Problem: Expected ']' at column 1, not column 5.
- //5 pass
- var a = ["a",
- "b",
- "c"
- ];
- //6 fail
- var a = [
- "a",
- "b", // Problem: Expected 'b' at column 9, not column 20.
- "c" // Problem: Expected 'c' at column 9, not column 13.
- ]; // Problem: Expected ']' at column 5, not column 9.
- //7 fail
- var a = ["a",
- "b",
- "c" // Problem: Expected 'c' at column 9, not column 5.
- ];
- //8 fail
- var a = [
- "a",
- "b", // Problem: Expected 'b' at column 5, not column 20.
- "c"
- ]; // Problem: Expected ']' at column 1, not column 9.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement