Not just javascript, but C and Java as well. In fact, Perl is the first language I've seen that allows (and actually encourages) trailing commas like that. I have to admit, it's really handy. I hate editing big SQL statements and moving things around because I inevitably have a
give me an error. Perl gives us the luxury of making the statements easy to move around or append to. Nice feature that.