2 ms·
Yeah, I'm also used to adding a comma after the last item (in C, C++, Python). One of the problems is that this is an error in Javascript, but only in IE. Whic
by edanm 17y ago
Yeah, I'm also used to adding a comma after the last item (in C, C++, Python).
One of the problems is that this is an error in Javascript, but only in IE. Which means code will work fine while you develop, but when it comes time to test, it will suddenly stop working.
The good thing about this way is that it's also very easy for humans to spot the error. Bottom line, catching the error while you code is always better than catching it after you compile. Also, this method has the advantage of working in all the languages I work in.