Sign in
Log inSign up

Trailing commas?

Kashish Grover's photo
Kashish Grover
·Oct 26, 2017

Yay

56%

Eww

44%

81 votes · Closed

var object = { 
  foo: "bar", 
  baz: "qwerty",
  age: 42, <<--
};

var arr = [
  1, 
  2, 
  3, <<--
];