O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

: What happens if I put a comma after the last property?


A: In most browsers it won’t cause an error. However, in older versions of some browsers this will cause your JavaScript to halt execution. So, if you want your code to work in as many browsers as possible, keep away from extraneous commas.


Cover of Head First JavaScript Programming


What happens if I add a coma after the last property?