For example, will this cause any errors?
bob = {
name : 'bob',
job : 'developer',
};
I'm talking about that trailing comma after 'developer'
I know this is not best practice, but will it cause any errors at all? Thanks
For example, will this cause any errors?
bob = {
name : 'bob',
job : 'developer',
};
I'm talking about that trailing comma after 'developer'
I know this is not best practice, but will it cause any errors at all? Thanks
In IE 7 and older, it will throw an exception and the program will stop running.
I've seen this cause minification errors with Asp.Net's bundling, might cause the same error with other JS minification tools. It'll say "error something on line nnn, invalid character" or something similar and fails to minify the JS.